mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
Vulkan: Default construct slang_reflection instead.
We will use non-POD when dealing with user-defined inputs.
This commit is contained in:
parent
2427351afb
commit
c17755ab1a
@ -981,7 +981,7 @@ bool Pass::build()
|
|||||||
pass_info.rt_format));
|
pass_info.rt_format));
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&reflection, 0, sizeof(reflection));
|
reflection = slang_reflection{};
|
||||||
if (!slang_reflect_spirv(vertex_shader, fragment_shader, &reflection))
|
if (!slang_reflect_spirv(vertex_shader, fragment_shader, &reflection))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -60,6 +60,8 @@ struct slang_semantic_meta
|
|||||||
|
|
||||||
struct slang_reflection
|
struct slang_reflection
|
||||||
{
|
{
|
||||||
|
slang_reflection() = default;
|
||||||
|
|
||||||
size_t ubo_size = 0;
|
size_t ubo_size = 0;
|
||||||
unsigned ubo_binding = 0;
|
unsigned ubo_binding = 0;
|
||||||
uint32_t ubo_stage_mask = 0;
|
uint32_t ubo_stage_mask = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user