vkd3d-shader/ir: Allow controlling FFP point size through a vkd3d-shader parameter.

This commit is contained in:
Elizabeth Figura
2024-10-03 16:22:38 -05:00
committed by Henri Verbeet
parent 6ee17cf77e
commit 54092286be
Notes: Henri Verbeet 2024-10-10 23:00:15 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1146
3 changed files with 96 additions and 1 deletions

View File

@ -648,6 +648,25 @@ enum vkd3d_shader_parameter_name
VKD3D_SHADER_PARAMETER_NAME_CLIP_PLANE_5,
VKD3D_SHADER_PARAMETER_NAME_CLIP_PLANE_6,
VKD3D_SHADER_PARAMETER_NAME_CLIP_PLANE_7,
/**
* Point size.
*
* When this parameter is provided to a vertex, tessellation, or geometry
* shader, and the source shader does not write point size, it specifies a
* uniform value which will be written to point size.
* If the source shader writes point size, this parameter is ignored.
*
* This parameter can be used to implement fixed function point size, as
* present in Direct3D versions 8 and 9, if the target environment does not
* support point size as part of its own fixed-function API (as Vulkan and
* core OpenGL).
*
* The data type for this parameter must be
* VKD3D_SHADER_PARAMETER_DATA_TYPE_FLOAT32.
*
* \since 1.14
*/
VKD3D_SHADER_PARAMETER_NAME_POINT_SIZE,
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_PARAMETER_NAME),
};