| 13 | #endif |
| 14 | |
| 15 | TEST( GlobalInput, GlobalInputWithNoArgumentsIsAnError ) |
| 16 | { |
| 17 | const char* src = R"SRC( |
| 18 | struct HitInfo |
| 19 | { |
| 20 | float visibility; |
| 21 | }; |
| 22 | |
| 23 | [shader("miss")] |
| 24 | [globalinput] // <- testing this line |
| 25 | void Miss(inout HitInfo payload) |
| 26 | { |
| 27 | } |
| 28 | technique 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 | |
| 41 | static const char* s_globalInputTest = R"SRC( |
| 42 | struct HitInfo |
nothing calls this directly
no test coverage detected