summaryrefslogtreecommitdiff
path: root/tests/hlsl/texture-mips-operator.slang
blob: 4b3b7fd98d9e23ad2fd2a06397e7878370092141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//TEST:SIMPLE(filecheck=CHECK): -target spirv

// CHECK: OpImageFetch %v4float {{.*}} Lod %int_1

RWStructuredBuffer<float4> result;

uniform Texture2D gTex;

[numthreads(1,1,1)]
void main()
{
    result[0] = gTex.mips[1][int2(3,4)];
}