ngfx::Framebuffer
Inherited by ngfx::D3DFramebuffer, ngfx::MTLFramebuffer, ngfx::VKFramebuffer
Public Classes
| Name | |
|---|---|
| struct | Attachment |
Public Functions
| Name | |
|---|---|
| Framebuffer * | create(Device * device, RenderPass * renderPass, const std::vector< Attachment > & attachments, uint32_t w, uint32_t h, uint32_t layers =1) |
| virtual | ~Framebuffer() |
Public Attributes
| Name | |
|---|---|
| uint32_t | w |
| uint32_t | h |
| uint32_t | layers |
| uint32_t | numAttachments |
| std::vector< Attachment > | attachments |
Public Functions Documentation
function create
static Framebuffer * create(
Device * device,
RenderPass * renderPass,
const std::vector< Attachment > & attachments,
uint32_t w,
uint32_t h,
uint32_t layers =1
)
Parameters:
- device The graphics device
- renderPass The renderPass object
- attachments The output attachments
- w The destination width
- h The destination height
- layers The number of output layers
Create a framebuffer object
function ~Framebuffer
inline virtual ~Framebuffer()
Destroy the framebuffer
Public Attributes Documentation
variable w
uint32_t w;
The output width
variable h
uint32_t h;
The output height
variable layers
uint32_t layers;
The number of output layers
variable numAttachments
uint32_t numAttachments;
The number of attachments
variable attachments
std::vector< Attachment > attachments;
The vector of output attachments
Updated on 3 April 2021 at 20:21:51 PDT