File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5847,6 +5847,8 @@ lvk::ShaderModuleState lvk::VulkanContext::createShaderModuleFromSlang(ShaderSta
58475847 " [[vk::binding(0, 2)]] TextureCube kTexturesCube[];\n "
58485848 " [[vk::binding(1, 0)]] SamplerState kSamplers[];\n "
58495849 " [[vk::binding(3, 0)]] Sampler2D kSamplersYUV[];\n " ;
5850+ // cannot handle unbounded arrays https://github.com/shader-slang/slang/issues/8902
5851+ addCode (" kTLAS[" , " [[vk::binding(4, 0)]] RaytracingAccelerationStructure kTLAS[];\n " );
58505852 addCode (" textureBindless2D(" ,
58515853 " float4 textureBindless2D(uint textureid, uint samplerid, float2 uv) {\n "
58525854 " return kTextures2D[NonUniformResourceIndex(textureid)].Sample(\n "
Original file line number Diff line number Diff line change 88#include " VulkanApp.h"
99
1010const char * codeSlang = R"(
11+ [[vk::binding(2, 0)]] RWTexture2D<float4> kTextures2DInOut[];
12+
1113struct Camera {
1214 float4x4 viewInverse;
1315 float4x4 projInverse;
@@ -22,10 +24,6 @@ struct PushConstants {
2224
2325[[vk::push_constant]] PushConstants pc;
2426
25- [[vk::binding(2, 0)]] RWTexture2D<float4> kTextures2DInOut[];
26- // cannot handle unbounded arrays https://github.com/shader-slang/slang/issues/8902
27- [[vk::binding(4, 0)]] RaytracingAccelerationStructure kTLAS[];
28-
2927struct RayPayload {
3028 float3 color;
3129};
You can’t perform that action at this time.
0 commit comments