Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::RTAttachment Class Referencefinal

#include <RTAttachment.h>

Public Types

enum class  Layout : U8 { UNDEFINED = 0u , ATTACHMENT , SHADER_READ }
 

Public Member Functions

 RTAttachment (RenderTarget &parent, const RTAttachmentDescriptor &descriptor) noexcept
 
 ~RTAttachment ()
 
Handle< Texturetexture () const
 
void setTexture (Handle< Texture > renderTexture, Handle< Texture > resolveTexture) noexcept
 
RenderTargetparent () noexcept
 
const RenderTargetparent () const noexcept
 
 PROPERTY_R_IW (Handle< Texture >, renderTexture, INVALID_HANDLE< Texture >)
 
 PROPERTY_R_IW (Handle< Texture >, resolvedTexture, INVALID_HANDLE< Texture >)
 
 PROPERTY_RW (U32, binding, 0u)
 
 PROPERTY_RW (bool, changed, false)
 

Public Attributes

RTAttachmentDescriptor _descriptor
 
Layout _attachmentUsage { Layout::UNDEFINED }
 

Protected Attributes

RenderTarget_parent
 

Detailed Description

Definition at line 107 of file RTAttachment.h.

Member Enumeration Documentation

◆ Layout

enum class Divide::RTAttachment::Layout : U8
strong
Enumerator
UNDEFINED 
ATTACHMENT 
SHADER_READ 

Definition at line 110 of file RTAttachment.h.

Constructor & Destructor Documentation

◆ RTAttachment()

Divide::RTAttachment::RTAttachment ( RenderTarget parent,
const RTAttachmentDescriptor descriptor 
)
explicitnoexcept

Definition at line 14 of file RTAttachment.cpp.

◆ ~RTAttachment()

Divide::RTAttachment::~RTAttachment ( )

Definition at line 20 of file RTAttachment.cpp.

Member Function Documentation

◆ parent() [1/2]

const RenderTarget & Divide::RTAttachment::parent ( ) const
noexcept

Definition at line 45 of file RTAttachment.cpp.

◆ parent() [2/2]

RenderTarget & Divide::RTAttachment::parent ( )
noexcept

Definition at line 40 of file RTAttachment.cpp.

◆ PROPERTY_R_IW() [1/2]

Divide::RTAttachment::PROPERTY_R_IW ( Handle< Texture ,
renderTexture  ,
INVALID_HANDLE< Texture  
)

◆ PROPERTY_R_IW() [2/2]

Divide::RTAttachment::PROPERTY_R_IW ( Handle< Texture ,
resolvedTexture  ,
INVALID_HANDLE< Texture  
)

◆ PROPERTY_RW() [1/2]

Divide::RTAttachment::PROPERTY_RW ( bool  ,
changed  ,
false   
)

◆ PROPERTY_RW() [2/2]

Divide::RTAttachment::PROPERTY_RW ( U32  ,
binding  ,
0u   
)

◆ setTexture()

void Divide::RTAttachment::setTexture ( Handle< Texture renderTexture,
Handle< Texture resolveTexture 
)
noexcept

Definition at line 31 of file RTAttachment.cpp.

◆ texture()

Handle< Texture > Divide::RTAttachment::texture ( ) const

Definition at line 26 of file RTAttachment.cpp.

Member Data Documentation

◆ _attachmentUsage

Layout Divide::RTAttachment::_attachmentUsage { Layout::UNDEFINED }

Definition at line 129 of file RTAttachment.h.

◆ _descriptor

RTAttachmentDescriptor Divide::RTAttachment::_descriptor

Definition at line 128 of file RTAttachment.h.

◆ _parent

RenderTarget& Divide::RTAttachment::_parent
protected

Definition at line 138 of file RTAttachment.h.


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