Inherits LiteFX::Implement< RenderTarget >.
◆ 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 |
◆ RenderTarget
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.