mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 00:41:07 +01:00
There is no literal suffix in HLSL for the integer type. We can, however, wrap integer literals in a constructor style cast. This avoids ambiguity when passing literals to overloaded functions, which we'll make use of in the subsequent patch in this PR.
8 lines
210 B
HLSL
8 lines
210 B
HLSL
[numthreads(1, 1, 1)]
|
|
void main()
|
|
{
|
|
int phony = (int4(12u, 12u >> 8, 12u >> 16, 12u >> 24) << 24 >> 24)[int(2)];
|
|
uint phony_1 = (uint4(12u, 12u >> 8, 12u >> 16, 12u >> 24) << 24 >> 24).y;
|
|
return;
|
|
}
|