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

#include <RV_VKFramebuffer.h>

+ Inheritance diagram for RV_DynamicFramebuffer:

Public Member Functions

 RV_DynamicFramebuffer (int w, int h, int samples=1)
 
 ~RV_DynamicFramebuffer () override
 
 RV_DynamicFramebuffer (const RV_DynamicFramebuffer &)=delete
 
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)
 
virtual ~RV_Framebuffer ()
 
UT_DimRect getRenderRegion () const
 
void setSize (int w, int h)
 
int getWidth ()
 
int getHeight ()
 
void setSampleCount (int samples)
 
int getSampleCount ()
 
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)
 
RV_VKImagegetDepthImage ()
 
bool attachImage (RV_Render *r, RV_VKImage *img, RV_AttachmentType buffer_type, int buffer_target=0, int level=0, int layer=0)
 
RV_VKImagecreateImage (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)
 

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)
 
- Protected Member Functions inherited from RV_Framebuffer
bool fillPipelineAttachments (RV_RenderPassFormatInfo &out_info)
 
const UT_Array
< rv_VKAttachmentPtr > & 
colorAttachments () const
 
const rv_VKAttachmentPtrdepthAttachment () const
 
virtual void attachmentsChanged ()
 
- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 
 ~UT_NonCopyable ()=default
 
 UT_NonCopyable (const UT_NonCopyable &)=delete
 
UT_NonCopyableoperator= (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
 
UT_Array< rv_VKAttachmentPtrmyColorAttachments
 
rv_VKAttachmentPtr myDepthAttachment
 

Detailed Description

Definition at line 179 of file RV_VKFramebuffer.h.

Constructor & Destructor Documentation

RV_DynamicFramebuffer::RV_DynamicFramebuffer ( int  w,
int  h,
int  samples = 1 
)
RV_DynamicFramebuffer::~RV_DynamicFramebuffer ( )
override
RV_DynamicFramebuffer::RV_DynamicFramebuffer ( const RV_DynamicFramebuffer )
delete

Member Function Documentation

bool RV_DynamicFramebuffer::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_DynamicFramebuffer::endRendering ( RV_Instance inst,
RV_VKCommandBuffer cb 
)
overridevirtual

Implements RV_Framebuffer.

bool RV_DynamicFramebuffer::fillPipelineInfo ( RV_RenderPassFormatInfo info)
overridevirtual

Implements RV_Framebuffer.


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