CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
RenderGraphBuffer.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Forward.hpp"
11
13
15
17
30
32 protected:
36
40
41 public:
46
47 public:
50
53
55 void setBuffer(const GPUBufferPtr& buffer);
56
57 public: // RenderGraphResource interface
60 };
61
63
64} // namespace CeresEngine::RenderGraph2
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
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