blob: 1a011df37ac04f9af28a87fdc4a8d3cd43d71f4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// 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);
}
|