Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIR-V] HLSL style register assignment for resource arrays #6932

Prev Previous commit
Update vk.binding.cl.hlsl-arrays.example1.hlsl
  • Loading branch information
manas-kulkarni committed Sep 25, 2024
commit 252cb6ce990afeee480041d997ee664524da26e8
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// RUN: %dxc -T ps_6_0 -E main -fspv-hlsl-resource-arrays -fcgl %s -spirv | FileCheck %s

// CHECK: OpDecorate %MyTextures Binding 0
// CHECK: OpDecorate %AnotherTexture Binding 5
// CHECK: OpDecorate %NextTexture Binding 6
// CHECK: OpDecorate %NextTexture Binding 5
// CHECK: OpDecorate %AnotherTexture Binding 6
// CHECK: OpDecorate %MySamplers Binding 7
Texture2D MyTextures[5];
Texture2D NextTexture;