|
vkd3d 2.0
The vkd3d 3D Graphics Library
|
An individual shader parameter. More...
#include <vkd3d_shader.h>
Data Structures | |
| union | [union].u |
Data Fields | |
| enum vkd3d_shader_parameter_name | name |
| The builtin parameter to be mapped. | |
| enum vkd3d_shader_parameter_type | type |
| How the parameter will be provided to the shader. | |
| enum vkd3d_shader_parameter_data_type | data_type |
| The data type of the supplied parameter, which determines how it is to be interpreted. | |
| union | u |
An individual shader parameter.
This structure is used in struct vkd3d_shader_parameter_info; see there for explanation of shader parameters.
For example, to specify the rasterizer sample count to the shader via an unsigned integer specialization constant with ID 3, set the following members:
This structure is an extended version of struct vkd3d_shader_parameter.