ReactOS 0.4.17-dev-934-g091855f
vkd3d_shader_parameter_info Struct Reference

#include <vkd3d_shader.h>

Collaboration diagram for vkd3d_shader_parameter_info:

Public Attributes

enum vkd3d_shader_structure_type type
 
const void * next
 
const struct vkd3d_shader_parameter1 * parameters
 
unsigned int parameter_count
 

Detailed Description

Interface information regarding a builtin shader parameter.

Like compile options specified with struct vkd3d_shader_compile_option, parameters are used to specify certain values which are not part of the source shader bytecode but which need to be specified in the shader bytecode in the target format. Unlike struct vkd3d_shader_compile_option, however, this structure allows parameters to be specified in a variety of different ways, as described by enum vkd3d_shader_parameter_type.

This structure is an extended version of struct vkd3d_shader_parameter as used in struct vkd3d_shader_spirv_target_info, which allows more parameter types to be used, and also allows specifying parameters when compiling shaders to target types other than SPIR-V. If this structure is chained along with vkd3d_shader_spirv_target_info, any parameters specified in the latter structure are ignored.

This structure is passed to vkd3d_shader_compile() and extends vkd3d_shader_compile_info.

This structure contains only input parameters.

Since
1.13

Definition at line 2429 of file vkd3d_shader.h.

Member Data Documentation

◆ next

const void* vkd3d_shader_parameter_info::next

Optional pointer to a structure containing further parameters.

Definition at line 2434 of file vkd3d_shader.h.

◆ parameter_count

unsigned int vkd3d_shader_parameter_info::parameter_count

Size, in elements, of parameters.

Definition at line 2439 of file vkd3d_shader.h.

Referenced by vsir_program_init().

◆ parameters

const struct vkd3d_shader_parameter1* vkd3d_shader_parameter_info::parameters

Pointer to an array of dynamic parameters for this shader instance.

Definition at line 2437 of file vkd3d_shader.h.

Referenced by vsir_program_init().

◆ type

enum vkd3d_shader_structure_type vkd3d_shader_parameter_info::type

Must be set to VKD3D_SHADER_STRUCTURE_TYPE_PARAMETER_INFO.

Definition at line 2432 of file vkd3d_shader.h.


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