blob: cf2c9c63edd43c060307f83322214ed08d513244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type
//TEST_INPUT: set outputBuffer = out ubuffer(data=[0 0 0 0], stride=4)
RWStructuredBuffer<float> outputBuffer;
// Test that KnownBuiltin attribute works with enum-based system
// Using GeometryStreamAppend enum value (0) for testing
static const int GEOMETRY_STREAM_APPEND_BUILTIN = 0;
[KnownBuiltin(GEOMETRY_STREAM_APPEND_BUILTIN)]
void testKnownBuiltin()
{
// This function just needs to exist to test attribute processing
}
[numthreads(1,1,1)]
void computeMain()
{
// Simple test that the code compiles and runs
outputBuffer[0] = 42.0f;
// CHECK: 42.0
}
|