mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader: Implement shader model 1.0-1.3 texture projection.
This commit is contained in:
committed by
Henri Verbeet
parent
44c80c60b8
commit
c50210f230
Notes:
Henri Verbeet
2025-11-20 18:37:00 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1814
@@ -1039,6 +1039,25 @@ enum vkd3d_shader_parameter_name
|
||||
VKD3D_SHADER_PARAMETER_NAME_BUMP_LUMINANCE_OFFSET_3,
|
||||
VKD3D_SHADER_PARAMETER_NAME_BUMP_LUMINANCE_OFFSET_4,
|
||||
VKD3D_SHADER_PARAMETER_NAME_BUMP_LUMINANCE_OFFSET_5,
|
||||
/**
|
||||
* A mask of projected textures.
|
||||
*
|
||||
* When this parameter is provided to a shader model 1.0-1.3 pixel shader,
|
||||
* for each nonzero bit of this mask, the corresponding texture will be
|
||||
* projected. That is, it will have its coordinates divided by their W
|
||||
* component before sampling.
|
||||
*
|
||||
* The default value is zero, i.e. no textures are projected.
|
||||
*
|
||||
* The data type for this parameter must be
|
||||
* VKD3D_SHADER_PARAMETER_DATA_TYPE_UINT32.
|
||||
*
|
||||
* Only VKD3D_SHADER_PARAMETER_TYPE_IMMEDIATE_CONSTANT is supported in this
|
||||
* version of vkd3d-shader.
|
||||
*
|
||||
* \since 1.19
|
||||
*/
|
||||
VKD3D_SHADER_PARAMETER_NAME_PROJECTED_TEXTURE_MASK,
|
||||
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_PARAMETER_NAME),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user