Skip to content

Commit e090984

Browse files
authored
[SPIR-V] Fixes SPV_KHR_fragment_shading_rate preventing optimizations (microsoft#6980)
Updated the SPIRV-Tools version to bring 2 fixes. Fixes microsoft#6915 Signed-off-by: Nathan Gauër <[email protected]>
1 parent a023a95 commit e090984

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// RUN: %dxc -T vs_6_6 -E main -spirv -fspv-target-env=vulkan1.3 %s | FileCheck %s
2+
3+
// CHECK-NOT: OpDecorate %unused DescriptorSet
4+
// CHECK-NOT: OpDecorate %unused Binding
5+
RWStructuredBuffer<uint> unused;
6+
7+
struct in0
8+
{
9+
float4 position : POSITION;
10+
float2 uv : TEXCOORD0;
11+
};
12+
13+
struct out0
14+
{
15+
float4 pos : SV_Position;
16+
uint sr : SV_ShadingRate;
17+
};
18+
19+
// CHECK-NOT: OpEntryPoint Vertex %main "main" %in_var_POSITION %in_var_TEXCOORD0 %gl_Position %{{.*}} %unused
20+
// CHECK: OpEntryPoint Vertex %main "main" %gl_Position %{{.*}}
21+
out0 main(in0 i)
22+
{
23+
return (out0) 0;
24+
}

0 commit comments

Comments
 (0)