blob: 6d6558268b3334214ae83868c44d660ba499879e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj
[UnscopedEnum]
enum class Fruit
{
Orange, Apple
}
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
RWStructuredBuffer<uint> outputBuffer;
[numthreads(1,1,1)]
void computeMain()
{
// CHECK: 1
outputBuffer[0] = (int)Apple;
}
|