Unverified Commit 999d4fdc by alelenv Committed by GitHub

Add default descriptorset decoration for acceleration structure (#2257)

variables.
parent 0cc27fb6
...@@ -1292,7 +1292,8 @@ bool IsDescriptorResource(const glslang::TType& type) ...@@ -1292,7 +1292,8 @@ bool IsDescriptorResource(const glslang::TType& type)
// basically samplerXXX/subpass/sampler/texture are all included // basically samplerXXX/subpass/sampler/texture are all included
// if they are the global-scope-class, not the function parameter // if they are the global-scope-class, not the function parameter
// (or local, if they ever exist) class. // (or local, if they ever exist) class.
if (type.getBasicType() == glslang::EbtSampler) if (type.getBasicType() == glslang::EbtSampler ||
type.getBasicType() == glslang::EbtAccStruct)
return type.getQualifier().isUniformOrBuffer(); return type.getQualifier().isUniformOrBuffer();
// None of the above. // None of the above.
......
#version 460 #version 460
#extension GL_EXT_ray_tracing : enable #extension GL_EXT_ray_tracing : enable
#extension GL_EXT_ray_flags_primitive_culling : enable #extension GL_EXT_ray_flags_primitive_culling : enable
layout(binding = 0, set = 0) uniform accelerationStructureEXT accEXT0; layout(binding = 0) uniform accelerationStructureEXT accEXT0;
layout(binding = 1, set = 0) uniform accelerationStructureEXT accEXT1; // Unused layout(binding = 1, set = 0) uniform accelerationStructureEXT accEXT1; // Unused
layout(binding = 2, r32ui) shadercallcoherent uniform uimage2D imageu; layout(binding = 2, r32ui) shadercallcoherent uniform uimage2D imageu;
layout(location = 0) rayPayloadEXT vec4 payload; layout(location = 0) rayPayloadEXT vec4 payload;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment