blob: 61c952358ed5087acad02483f2b38825455d582f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//TEST(smoke,compute):COMPARE_COMPUTE:-cpu -shaderobj -Xslang... -Wno-unrecommended-implicit-conversion -X.
// Test to check warning disable
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
RWStructuredBuffer<uint> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
uint v = dispatchThreadID.x;
// This coercion loses data and would normally produce a warning
int16_t v1 = v;
outputBuffer[dispatchThreadID.x] = v1;
}
|