A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition RenderGraphBuffer.hpp:31
const GPUBufferPtr & getBuffer() const noexcept
A pointer to the instantiated GPU buffer.
Definition RenderGraphBuffer.hpp:52
RenderGraphBufferDescriptor mDescriptor
A structure that describes how the RenderGraphBuffer should create a GPUBuffer based on it's inputs.
Definition RenderGraphBuffer.hpp:35
GPUBufferPtr mBuffer
A pointer to the instantiated GPU buffer.
Definition RenderGraphBuffer.hpp:39
RenderGraphResourceType getType() const noexcept final
Definition RenderGraphBuffer.hpp:59
const RenderGraphBufferDescriptor & getDescriptor() const noexcept
A structure that describes how the RenderGraphBuffer should create a GPUBuffer based on it's inputs.
Definition RenderGraphBuffer.hpp:49
void setBuffer(const GPUBufferPtr &buffer)
A pointer to the instantiated GPU buffer.
RenderGraphBuffer(RenderGraph &graph, const RenderGraphBufferDescriptor &descriptor)
Creates a new RenderGraphBuffer instance.
Definition RenderGraphBuffer.hpp:45
Represents a graph type that can be used for describring the whole rendering process in the engine.
Definition RenderGraph.hpp:33
Definition RenderGraphResource.hpp:26
Definition Forward.hpp:12
RenderGraphResourceType
Definition RenderGraphResource.hpp:18
@ Buffer
The RenderGraphResource is a RenderGraphBuffer.
@ Automatic
Automatically defines the buffer usage based on type.
GPUMemorySize GPUBufferSize
A type that represents a buffer size.
Definition GPUBuffer.hpp:86
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition RenderGraphBuffer.hpp:18
GPUBufferUsage usage
The buffer usage hints.
Definition RenderGraphBuffer.hpp:23
bool persistent
Determines if the render graph resource is persistent.
Definition RenderGraphBuffer.hpp:28
GPUBufferSize size
Buffer size (in bytes). By default 0.
Definition RenderGraphBuffer.hpp:20