MCPcopy Create free account
hub / github.com/carbonengine/trinity / TEST_F

Function TEST_F

trinityal/tests/Rendering.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166TEST_F( Rendering, CanClearBackBuffer )
167{
168 ENSURE_GPU_OR_SKIP
169 uint32_t g = 127;
170
171 auto frame = [&] {
172 ASSERT_HRESULT_SUCCEEDED( renderContext->Clear( Tr2RenderContextEnum::CLEARFLAGS_TARGET, 0xff000000 | ( ( g & 0xff ) << 8 ), 1.0f ) );
173 MakeTestScreenShot();
174 ASSERT_HRESULT_SUCCEEDED( renderContext->Present() );
175 g++;
176 };
177
178 RunLoop( frame );
179}
180
181TEST_F( Rendering, CanRenderASingleTriangle )
182{

Callers

nothing calls this directly

Calls 15

CreateOutputTexCoordPSFunction · 0.85
CreateWriteToUavPSFunction · 0.85
CreateLoadMsaaTexturePSFunction · 0.85
SetSrvMethod · 0.80
SetRectMethod · 0.80

Tested by

no test coverage detected