libs/vkd3d-shader: Rename vkd3d_shader_push_constant to vkd3d_shader_push_constant_buffer.

This should be clearer. Multiple constant buffers can be assigned to
a single push constant range.
This commit is contained in:
Józef Kucia
2017-09-07 17:15:54 +02:00
parent bd0c886281
commit efdf2ec691
4 changed files with 29 additions and 26 deletions

View File

@@ -1175,8 +1175,8 @@ static HRESULT create_shader_stage(struct d3d12_device *device,
shader_interface.bindings = root_signature->descriptor_mapping;
shader_interface.binding_count = root_signature->descriptor_count;
shader_interface.push_constants = root_signature->root_constants;
shader_interface.push_constant_count = root_signature->root_constant_count;
shader_interface.push_constant_buffers = root_signature->root_constants;
shader_interface.push_constant_buffer_count = root_signature->root_constant_count;
shader_interface.default_sampler = root_signature->default_sampler;
if (FAILED(hr = vkd3d_shader_compile_dxbc(&dxbc, &spirv, 0, &shader_interface)))
{

View File

@@ -344,7 +344,7 @@ struct d3d12_root_signature
struct vkd3d_shader_descriptor_binding default_sampler;
unsigned int root_constant_count;
struct vkd3d_shader_push_constant *root_constants;
struct vkd3d_shader_push_constant_buffer *root_constants;
unsigned int push_constant_range_count;
/* Only a single push constant range may include the same stage in Vulkan. */