mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
vk: Generate dynamic binding table based on the capability of the drivers
- This alleviates constraints imposed on shaders to allow running on some not-so-great platforms.
This commit is contained in:
parent
4a5559ee65
commit
db5d03c340
8 changed files with 80 additions and 70 deletions
|
@ -227,21 +227,5 @@ namespace vk
|
|||
vkUpdateDescriptorSets(m_device, 1, &descriptor_writer, 0, nullptr);
|
||||
attribute_location_mask |= (1ull << binding_point);
|
||||
}
|
||||
|
||||
u64 program::get_vertex_input_attributes_mask()
|
||||
{
|
||||
if (vertex_attributes_mask)
|
||||
return vertex_attributes_mask;
|
||||
|
||||
for (const auto &uniform : uniforms[program_input_type::input_type_texel_buffer])
|
||||
{
|
||||
if (uniform.domain == program_domain::glsl_vertex_program)
|
||||
{
|
||||
vertex_attributes_mask |= (1ull << (uniform.location - VERTEX_BUFFERS_FIRST_BIND_SLOT));
|
||||
}
|
||||
}
|
||||
|
||||
return vertex_attributes_mask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue