MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / CreateResourceHeap

Function CreateResourceHeap

deps/LLGL/examples/Cpp/RenderTarget/Example.cpp:28–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#endif
27
28class Example_RenderTarget : public ExampleBase
29{
30
31 LLGL::ShaderProgram* shaderProgram = nullptr;
32
33 LLGL::PipelineState* pipelines[2] = {};
34 LLGL::PipelineLayout* pipelineLayout = nullptr;
35
36 LLGL::Buffer* vertexBuffer = nullptr;
37 LLGL::Buffer* indexBuffer = nullptr;
38 LLGL::Buffer* constantBuffer = nullptr;
39
40 LLGL::Texture* colorMap = nullptr;
41 LLGL::Sampler* samplerState = nullptr;
42 LLGL::ResourceHeap* resourceHeap = nullptr;
43
44 LLGL::RenderTarget* renderTarget = nullptr;
45 LLGL::Texture* renderTargetTex = nullptr;
46
47 #ifdef ENABLE_DEPTH_TEXTURE
48 LLGL::Texture* renderTargetDepthTex = nullptr;
49 #endif
50
51 Gs::Matrix4f renderTargetProj;
52
53 Gs::Vector2f rotation;
54
55 #ifdef ENABLE_CBUFFER_RANGE
56 std::uint64_t cbufferAlignment = 0;
57 std::vector<char> cbufferData;
58 #endif
59
60 const LLGL::Extent2D renderTargetSize = LLGL::Extent2D(
61 #ifdef ENABLE_CUSTOM_MULTISAMPLING
62 64, 64
63 #else
64 512, 512
65 #endif
66 );
67
68 struct alignas(16) Settings
69 {
70 Gs::Matrix4f wvpMatrix;
71 int useTexture2DMS = 0;
72 };
73
74public:
75
76 Example_RenderTarget() :
77 ExampleBase { L"LLGL Example: RenderTarget" }
78 {
79 // Create all graphics objects
80 auto vertexFormat = CreateBuffers();
81 LoadShaders(vertexFormat);
82 CreateColorMap();
83 CreateRenderTarget();
84 CreatePipelines();
85 CreateResourceHeap();

Callers 5

Example_TexturingMethod · 0.85
Example_RenderTargetMethod · 0.85
Example_MappingMethod · 0.85
CsRenderSystem.cppFile · 0.85
CsRenderSystem.hFile · 0.85

Calls 1

CreateResourceHeapMethod · 0.45

Tested by

no test coverage detected