LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::RenderTarget::RenderTargetImpl Class Reference

Inherits LiteFX::Implement< RenderTarget >.

Public Member Functions

 RenderTargetImpl (RenderTarget *parent, const String &name, const UInt32 &location, const RenderTargetType &type, const Format &format, const bool &clearBuffer, const Vector4f &clearValues, const bool &clearStencil, const bool &isVolatile, const BlendState &blendState)
 
- Public Member Functions inherited from LiteFX::Implement< RenderTarget >
 Implement (RenderTarget *parent)
 Initializes the implementation instance. More...
 
 Implement (Implement< RenderTarget > &&)=delete
 
 Implement (const Implement< RenderTarget > &)=delete
 
virtual ~Implement ()=default
 

Friends

class RenderTarget
 The resource is used as a render target. More...
 

Additional Inherited Members

- Public Types inherited from LiteFX::Implement< RenderTarget >
using interface_type = RenderTarget
 
using base = Implement< interface_type >
 
- Protected Attributes inherited from LiteFX::Implement< RenderTarget >
RenderTarget * m_parent
 

Constructor & Destructor Documentation

◆ RenderTargetImpl()

LiteFX::Rendering::RenderTarget::RenderTargetImpl::RenderTargetImpl ( RenderTarget parent,
const String name,
const UInt32 location,
const RenderTargetType &  type,
const Format &  format,
const bool &  clearBuffer,
const Vector4f clearValues,
const bool &  clearStencil,
const bool &  isVolatile,
const BlendState blendState 
)
inline

Friends And Related Function Documentation

◆ RenderTarget

friend class RenderTarget
friend

The resource is used as a render target.

The following table contains the API-specific flags for each supported back-end.

DirectX 12 ❎ Vulkan 🌋 (VkAccessFlags) Vulkan 🌋 (VkImageLayout)
D3D12_RESOURCE_STATE_RENDER_TARGET VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL

Typically you do not want to manually transition a resource into this state. Render target transitions are automatically managed by RenderPasses.