|
ReactOS 0.4.17-dev-934-g091855f
|
#include <vkd3d_shader.h>

A chained structure containing descriptor offsets.
This structure is optional.
This structure extends vkd3d_shader_interface_info.
This structure contains only input parameters.
Definition at line 1126 of file vkd3d_shader.h.
| const struct vkd3d_shader_descriptor_offset* vkd3d_shader_descriptor_offset_info::binding_offsets |
Pointer to an array of struct vkd3d_shader_descriptor_offset objects. The 'static_offset' field contains an offset into the descriptor arrays referenced by the 'bindings' array in struct vkd3d_shader_interface_info. This allows mapping multiple shader resource arrays to a single binding point in the target environment.
'dynamic_offset_index' in struct vkd3d_shader_descriptor_offset allows offsets to be set at runtime. The 32-bit descriptor table push constant at this index will be added to 'static_offset' to calculate the final binding offset.
If runtime offsets are not required, set all 'dynamic_offset_index' values to ~0u and 'descriptor_table_count' to zero.
For example, to map Direct3D constant buffer registers 'cb0[0:3]' and 'cb1[6:7]' to descriptors 8-12 and 4-5 in the Vulkan descriptor array in descriptor set 3 and with binding 2, set the following values in the 'bindings' array in struct vkd3d_shader_interface_info:
and then pass {8, 4} as static binding offsets here.
This field may be NULL, in which case the corresponding offsets are specified to be 0.
Definition at line 1183 of file vkd3d_shader.h.
Referenced by d3d12_pipeline_state_init_compute(), and d3d12_pipeline_state_init_graphics().
Size, in elements, of the descriptor table push constant array.
Definition at line 1140 of file vkd3d_shader.h.
Referenced by d3d12_pipeline_state_init_compute(), and d3d12_pipeline_state_init_graphics().
Byte offset within the push constants of an array of 32-bit descriptor array offsets. See the description of 'binding_offsets' below.
Definition at line 1138 of file vkd3d_shader.h.
Referenced by d3d12_pipeline_state_init_compute(), and d3d12_pipeline_state_init_graphics().
Optional pointer to a structure containing further parameters.
Definition at line 1131 of file vkd3d_shader.h.
Referenced by d3d12_pipeline_state_init_compute(), and d3d12_pipeline_state_init_graphics().
| enum vkd3d_shader_structure_type vkd3d_shader_descriptor_offset_info::type |
Must be set to VKD3D_SHADER_STRUCTURE_TYPE_DESCRIPTOR_OFFSET_INFO.
Definition at line 1129 of file vkd3d_shader.h.
Referenced by d3d12_pipeline_state_init_compute(), and d3d12_pipeline_state_init_graphics().
| const struct vkd3d_shader_descriptor_offset* vkd3d_shader_descriptor_offset_info::uav_counter_offsets |
Pointer to an array of offsets into the descriptor arrays referenced by the 'uav_counters' array in struct vkd3d_shader_interface_info. This works the same way as binding_offsets above.
Definition at line 1190 of file vkd3d_shader.h.
Referenced by d3d12_pipeline_state_init_compute(), and d3d12_pipeline_state_init_graphics().