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

Function read_resource_vec_size

framework/spirv_reflection.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96inline void read_resource_vec_size(const spirv_cross::Compiler &compiler,
97 const spirv_cross::Resource &resource,
98 ShaderResource & shader_resource,
99 const ShaderVariant & variant)
100{
101 const auto &spirv_type = compiler.get_type_from_variable(resource.id);
102
103 shader_resource.vec_size = spirv_type.vecsize;
104 shader_resource.columns = spirv_type.columns;
105}
106
107inline void read_resource_array_size(const spirv_cross::Compiler &compiler,
108 const spirv_cross::Resource &resource,

Callers 2

Input>Method · 0.85
Output>Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected