MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / DecorationLocation>

Method DecorationLocation>

framework/spirv_reflection.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42template <>
43inline void read_resource_decoration<spv::DecorationLocation>(const spirv_cross::Compiler &compiler,
44 const spirv_cross::Resource &resource,
45 ShaderResource & shader_resource,
46 const ShaderVariant & variant)
47{
48 shader_resource.location = compiler.get_decoration(resource.id, spv::DecorationLocation);
49}
50
51template <>
52inline void read_resource_decoration<spv::DecorationDescriptorSet>(const spirv_cross::Compiler &compiler,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected