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

Method Load

deps/LLGL/tests/Test_Performance.cpp:155–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 public:
154
155 void Load(const std::string& rendererModule, const TestConfig& testConfig)
156 {
157 // Store test configuration
158 config = testConfig;
159
160 // Load renderer
161 renderer = LLGL::RenderSystem::Load(rendererModule);
162
163 // Create render context
164 LLGL::RenderContextDescriptor contextDesc;
165 {
166 contextDesc.videoMode.resolution = { 640, 480 };
167 }
168 context = renderer->CreateRenderContext(contextDesc);
169
170 // Create command buffer
171 commands = renderer->CreateCommandBuffer();
172 commandQueue = renderer->GetCommandQueue();
173
174 // Create timer query
175 LLGL::QueryHeapDescriptor queryDesc;
176 {
177 queryDesc.type = LLGL::QueryType::TimeElapsed;
178 }
179 timerQuery = renderer->CreateQueryHeap(queryDesc);
180
181 // Create resources
182 CreateTextures(config.numTextures * 2);
183 }
184
185 void Run()
186 {

Callers 1

mainFunction · 0.45

Calls 4

CreateRenderContextMethod · 0.45
CreateCommandBufferMethod · 0.45
GetCommandQueueMethod · 0.45
CreateQueryHeapMethod · 0.45

Tested by

no test coverage detected