blob: c40692e6c6702e94ec21a0f5817072ce08f67225 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST_DISABLED:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// Note: disabled, pending adding an IR-based definition for `GetDimensions`.
// Ensure that `GetDimensions` with `mipCount` output works
// on a `Texture2D`
layout(binding = 1)
Texture2D t;
float4 main() : SV_Target
{
uint x, y, mipCount;
t.GetDimensions(0, x, y, mipCount);
return float4(x, y, mipCount, 0);
}
|