HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RV_RenderPassFramebuffer Class Reference

#include <RV_VKFramebuffer.h>

+ Inheritance diagram for RV_RenderPassFramebuffer:

Public Member Functions

 RV_RenderPassFramebuffer (int w, int h, int samples=1, const UT_StringRef &name=UT_StringRef())
 
 ~RV_RenderPassFramebuffer () override
 
bool fillPipelineInfo (RV_RenderPassFormatInfo &info) override
 
bool beginRendering (RV_Instance *inst, RV_VKCommandBuffer *cb, RV_ImageOp img_op=RV_IMAGE_LOAD, RV_RenderPassType type=RV_PASS_WHOLE) override
 
void endRendering (RV_Instance *inst, RV_VKCommandBuffer *cb) override
 
- Public Member Functions inherited from RV_Framebuffer
 RV_Framebuffer (int w, int h, int samples=1, const UT_StringRef &name=UT_StringRef())
 
virtual ~RV_Framebuffer ()
 
exint getMemoryUsage () const
 
UT_DimRect getRenderRegion () const
 
int getMaxLayers () const
 
void setSize (int w, int h)
 
int getWidth () const
 
int getHeight () const
 
void setSampleCount (int samples)
 
int getSampleCount () const
 
void setClearColor (UT_Vector4F c)
 
UT_Vector4F getClearColor () const
 
void setClearInt (UT_Vector4i i)
 
UT_Vector4i getClearInt () const
 
void setClearDepth (fpreal32 d)
 
fpreal32 getClearDepth () const
 
void getColorImages (UT_Array< const RV_VKImage * > &out_list)
 
int getNumColorImages () const
 
RV_VKImage * getColorImage (int i=0)
 
RV_VKImage * getDepthImage ()
 
void setMultiview (bool enable)
 
bool getMultiview () const
 
void setReadOnlyDepth (bool enable)
 
bool getReadOnlyDepth () const
 
void drawToBuffer (int color_buf_num)
 
void drawToBuffers (int num, const int *bufferlist)
 
void drawToNoBuffers ()
 
void drawToAllBuffers ()
 
bool attachImage (RV_Render *r, RV_VKImage *img, RV_AttachmentType buffer_type, int buffer_target=0, int level=0, int layer=0)
 
RV_VKImagePtr createImage (RV_Render *r, RV_GPUType type, int vec_size, RV_AttachmentType attach_type, int buffer_target=0)
 
void detachColorImage (RV_Render *r, int buffer_target=0)
 
void detachDepthImage (RV_Render *r)
 
const UT_StringHolder & name () const
 
void writeToFiles (RV_Render *r, const UT_StringHolder &base_name, const UT_StringHolder &ext, bool depth_too=false)
 

Additional Inherited Members

- Static Public Member Functions inherited from RV_Framebuffer
static UT_UniquePtr
< RV_Framebuffer > 
create (RV_Instance *inst, int w, int h, int samples=1, const UT_StringRef &name=UT_StringRef())
 
- Static Public Attributes inherited from RV_Framebuffer
static const int ALL_LAYERS = -1
 
- Protected Member Functions inherited from RV_Framebuffer
bool fillPipelineAttachments (RV_RenderPassFormatInfo &out_info)
 
const UT_Array
< rv_VKAttachmentPtr > & 
colorAttachments () const
 
const rv_VKAttachmentPtr & depthAttachment () const
 
void getColorDrawTargets (UT_Array< rv_VKAttachment * > &out_list)
 
- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 
 ~UT_NonCopyable ()=default
 
 UT_NonCopyable (const UT_NonCopyable &)=delete
 
UT_NonCopyable & operator= (const UT_NonCopyable &)=delete
 
- Protected Attributes inherited from RV_Framebuffer
uint32_t myWidth = 0
 
uint32_t myHeight = 0
 
uint32_t mySamples = 1
 
UT_Vector4F myClearColor = UT_Vector4F(0.f, 0.f, 0.f, 0.f)
 
UT_Vector4i myClearInt = UT_Vector4i(0, 0, 0, 0)
 
fpreal32 myClearDepth = 1.f
 
int myDrawMask = 0
 
bool myIsMultiview = false
 
bool myIsReadOnlyDepth = false
 
UT_Array< rv_VKAttachmentPtr > myColorAttachments
 
rv_VKAttachmentPtr myDepthAttachment
 
UT_SmallArray< int8 > myDrawTargets
 
bool myHasDrawTargets = true
 
UT_StringHolder myName
 

Detailed Description

Definition at line 238 of file RV_VKFramebuffer.h.

Constructor & Destructor Documentation

RV_RenderPassFramebuffer::RV_RenderPassFramebuffer ( int  w,
int  h,
int  samples = 1,
const UT_StringRef &  name = UT_StringRef() 
)
RV_RenderPassFramebuffer::~RV_RenderPassFramebuffer ( )
override

Member Function Documentation

bool RV_RenderPassFramebuffer::beginRendering ( RV_Instance *  inst,
RV_VKCommandBuffer *  cb,
RV_ImageOp  img_op = RV_IMAGE_LOAD,
RV_RenderPassType  type = RV_PASS_WHOLE 
)
overridevirtual

Implements RV_Framebuffer.

void RV_RenderPassFramebuffer::endRendering ( RV_Instance *  inst,
RV_VKCommandBuffer *  cb 
)
overridevirtual

Implements RV_Framebuffer.

bool RV_RenderPassFramebuffer::fillPipelineInfo ( RV_RenderPassFormatInfo &  info)
overridevirtual

Implements RV_Framebuffer.


The documentation for this class was generated from the following file: