Vulkan: Default construct slang_reflection instead.

We will use non-POD when dealing with user-defined inputs.
This commit is contained in:
Hans-Kristian Arntzen 2016-03-22 13:54:51 +01:00
parent 2427351afb
commit c17755ab1a
2 changed files with 3 additions and 1 deletions

View File

@ -981,7 +981,7 @@ bool Pass::build()
pass_info.rt_format));
}
memset(&reflection, 0, sizeof(reflection));
reflection = slang_reflection{};
if (!slang_reflect_spirv(vertex_shader, fragment_shader, &reflection))
return false;

View File

@ -60,6 +60,8 @@ struct slang_semantic_meta
struct slang_reflection
{
slang_reflection() = default;
size_t ubo_size = 0;
unsigned ubo_binding = 0;
uint32_t ubo_stage_mask = 0;