class final
framebuffercontainer class that describes the data to create a set of rendertargets.
types
classes
constructors, destructors, conversion operators
member-functions
Function documentation
core:: data:: framebuffer:: framebuffer(const UID& uid,
core:: resource:: cache& cache,
uint32_t width,
uint32_t height,
uint32_t layers = 1u)
Brief
basic constructor that sets up the rough outlines of an instance
Details
Parameters | |
---|---|
uid in | the resouce system assigned UID. |
cache in | signifies in which cache I will be constructed in. |
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 UID& core:: data:: framebuffer:: add(uint32_t width,
uint32_t height,
uint32_t layerCount,
vk::Format format,
vk::ImageUsageFlags usage,
vk::ClearValue clearValue,
vk::AttachmentDescription 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. |
format in | the format of the image on the GPU. |
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. |
bool core:: data:: framebuffer:: remove(const UID& uid)
Brief
removes the attachment that is using this UID for its texture.
Parameters | |
---|---|
uid in | the UID to search for |
Returns | true in case it found and removed atleast one attachment with the given UID. |
void core:: data:: framebuffer:: set(core:: resource:: handle<core:: gfx:: sampler> sampler)
Brief
sets the sampler associated with this framebuffer
Details
Parameters | |
---|---|
sampler in | a valid sampler resource |
const std::vector<attachment>& core:: data:: framebuffer:: attachments() const
Brief
gets all attachments currently assigned to this framebuffer.
Returns | all attachments currently assigned to this framebuffer. |
---|
uint32_t core:: data:: framebuffer:: framebuffers() const
Brief
returns the framebuffer count (layers).
Returns | the framebuffer count (layers). |
---|
std::optional<UID> core:: data:: framebuffer:: sampler() const
Brief
returns the sampler associated with this framebuffer (if it has been set).
Returns | the sampler associated with this framebuffer (if it has been set). |
---|