Allows for rendering to textures.
More...
#include <VulkanRenderCmdSink.h>
Allows for rendering to textures.
- See also
- CreateRenderTarget
-
DestroyRenderTarget
void molecular::gfx::VulkanRenderCmdSink::RenderTarget::AttachColorBuffer |
( |
Texture * |
texture, |
|
|
unsigned int |
attachment = 0 , |
|
|
unsigned int |
layer = 0 |
|
) |
| |
Set texture to render color to.
- Parameters
-
texture | The texture to render to. |
attachment | Use values different from 0 to activate MRTs. |
layer | Layer of the 3D texture to draw to (only applicable to 3D textures). |
void molecular::gfx::VulkanRenderCmdSink::RenderTarget::AttachColorBuffer |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
PixelFormat |
format, |
|
|
unsigned int |
attachment = 0 |
|
) |
| |
Enable rendering to a buffer.
The buffer cannot be used as a texture afterwards. Rarely needed for color targets. Simply don't output a fragmentColor when not needing color output.
void molecular::gfx::VulkanRenderCmdSink::RenderTarget::AttachDepthBuffer |
( |
Texture * |
texture | ) |
|
Set texture to render depth to.
void molecular::gfx::VulkanRenderCmdSink::RenderTarget::AttachDepthBuffer |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
PixelFormat |
format |
|
) |
| |
void molecular::gfx::VulkanRenderCmdSink::RenderTarget::AttachStencilBuffer |
( |
Texture * |
texture | ) |
|
void molecular::gfx::VulkanRenderCmdSink::RenderTarget::AttachStencilBuffer |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
PixelFormat |
format |
|
) |
| |
bool molecular::gfx::VulkanRenderCmdSink::RenderTarget::ColorBufferAttached |
( |
| ) |
const |
|
inline |
unsigned int molecular::gfx::VulkanRenderCmdSink::RenderTarget::GetHeight |
( |
| ) |
const |
|
inline |
unsigned int molecular::gfx::VulkanRenderCmdSink::RenderTarget::GetWidth |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: