class final
framebuffer_tcontainer class that describes the data to create a set of rendertargets.
types
classes
constructors, destructors, conversion operators
member-functions
Function documentation
core:: data:: framebuffer_t:: framebuffer_t(core:: resource:: cache_t& cache,
const core:: resource:: metadata& metaData,
psl:: meta:: file* metaFile,
uint32_t width,
uint32_t height,
uint32_t layers = 1u) noexcept
Brief
basic constructor that sets up the rough outlines of an instance
Details
Parameters | |
---|---|
cache in | signifies in which cache I will be constructed in. |
metaData in | the metadata that is assigned to this object |
metaFile in | the metafile associated with this instance |
width in | the width in pixels of this framebuffer. |
height in | the height in pixels of this framebuffer. |
layers in | the amount of layers this framebuffer will have (often referred to as the framebuffer count in the documentation). |
const psl:: UID& core:: data:: framebuffer_t:: add(uint32_t width,
uint32_t height,
uint32_t layerCount,
core:: gfx:: image:: usage usage,
core:: gfx:: clear_value clearValue,
core:: gfx:: attachment descr)
Brief
adds a core::
Details
Parameters | |
---|---|
width in | the width of the attachment in pixels. |
height in | the height of the attachment in pixels. |
layerCount in | the depth layers of the attachment. |
usage in | signifies how the image will be used. |
clearValue in | the value to clear the image with at the start of rendering. |
descr in | how the image load op's etc... will be handled. |
void core:: data:: framebuffer_t:: set(core:: resource:: handle<core:: gfx:: sampler_t> sampler)
Brief
sets the sampler associated with this framebuffer
Details
Parameters | |
---|---|
sampler in | a valid sampler resource |
const std::vector<attachment>& core:: data:: framebuffer_t:: attachments() const
Brief
gets all attachments currently assigned to this framebuffer.
Returns | all attachments currently assigned to this framebuffer. |
---|
uint32_t core:: data:: framebuffer_t:: framebuffers() const
Brief
returns the framebuffer count (layers).
Returns | the framebuffer count (layers). |
---|