ReactOS 0.4.17-dev-934-g091855f
vkd3d_shader_interface_info Struct Reference

#include <vkd3d_shader.h>

Collaboration diagram for vkd3d_shader_interface_info:

Public Attributes

enum vkd3d_shader_structure_type type
 
const void * next
 
const struct vkd3d_shader_resource_binding * bindings
 
unsigned int binding_count
 
const struct vkd3d_shader_push_constant_buffer * push_constant_buffers
 
unsigned int push_constant_buffer_count
 
const struct vkd3d_shader_combined_resource_sampler * combined_samplers
 
unsigned int combined_sampler_count
 
const struct vkd3d_shader_uav_counter_binding * uav_counters
 
unsigned int uav_counter_count
 

Detailed Description

A chained structure describing the interface between a compiled shader and the target environment.

For example, when compiling Direct3D shader byte code to SPIR-V, this structure contains mappings from Direct3D descriptor registers to SPIR-V descriptor bindings.

This structure is optional. If omitted, vkd3d_shader_compile() will use a default mapping, in which resources are mapped to sequential bindings in register set 0.

This structure extends vkd3d_shader_compile_info.

This structure contains only input parameters.

Definition at line 1059 of file vkd3d_shader.h.

Member Data Documentation

◆ binding_count

unsigned int vkd3d_shader_interface_info::binding_count

◆ bindings

const struct vkd3d_shader_resource_binding* vkd3d_shader_interface_info::bindings

Pointer to an array of bindings for shader resource descriptors.

Definition at line 1067 of file vkd3d_shader.h.

Referenced by d3d12_pipeline_state_init_compute(), d3d12_pipeline_state_init_graphics(), spirv_compiler_get_descriptor_binding(), and vkd3d_uav_clear_state_init().

◆ combined_sampler_count

◆ combined_samplers

◆ next

const void* vkd3d_shader_interface_info::next

Optional pointer to a structure containing further parameters.

Definition at line 1064 of file vkd3d_shader.h.

Referenced by d3d12_pipeline_state_init_compute(), d3d12_pipeline_state_init_graphics(), spirv_compiler_create(), and vkd3d_uav_clear_state_init().

◆ push_constant_buffer_count

unsigned int vkd3d_shader_interface_info::push_constant_buffer_count

◆ push_constant_buffers

const struct vkd3d_shader_push_constant_buffer* vkd3d_shader_interface_info::push_constant_buffers

Pointer to an array of bindings for push constant buffers.

Definition at line 1072 of file vkd3d_shader.h.

Referenced by d3d12_pipeline_state_init_compute(), d3d12_pipeline_state_init_graphics(), spirv_compiler_create(), and vkd3d_uav_clear_state_init().

◆ type

enum vkd3d_shader_structure_type vkd3d_shader_interface_info::type

Must be set to VKD3D_SHADER_STRUCTURE_TYPE_INTERFACE_INFO.

Definition at line 1062 of file vkd3d_shader.h.

Referenced by d3d12_pipeline_state_init_compute(), d3d12_pipeline_state_init_graphics(), and vkd3d_uav_clear_state_init().

◆ uav_counter_count

unsigned int vkd3d_shader_interface_info::uav_counter_count

◆ uav_counters

const struct vkd3d_shader_uav_counter_binding* vkd3d_shader_interface_info::uav_counters

Pointer to an array of bindings for UAV counters.

Definition at line 1082 of file vkd3d_shader.h.

Referenced by d3d12_pipeline_state_init_compute(), d3d12_pipeline_state_init_graphics(), spirv_compiler_get_descriptor_binding(), and vkd3d_uav_clear_state_init().


The documentation for this struct was generated from the following file: