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

Function TEST

shadercompiler/tests/GlobalInputTest.cpp:15–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#endif
14
15TEST( GlobalInput, GlobalInputWithNoArgumentsIsAnError )
16{
17 const char* src = R"SRC(
18struct HitInfo
19{
20 float visibility;
21};
22
23[shader("miss")]
24[globalinput] // <- testing this line
25void Miss(inout HitInfo payload)
26{
27}
28technique t0
29{
30 library p0
31 {
32 MissShader = compile lib_6_3 Miss();
33 payloadsize = 4;
34 }
35}
36)SRC";
37
38 EXPECT_FALSE( Compiles<DefaultCompiler>( src ) );
39}
40
41static const char* s_globalInputTest = R"SRC(
42struct HitInfo

Callers

nothing calls this directly

Calls 1

FormatStringFunction · 0.85

Tested by

no test coverage detected