mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-shader: Implement SV_InstanceID.
This commit is contained in:
parent
cd99601b3c
commit
b61c785bd0
@ -2568,6 +2568,9 @@ static void vkd3d_dxbc_compiler_emit_store_dst_components(struct vkd3d_dxbc_comp
|
|||||||
*
|
*
|
||||||
* "The variable decorated with VertexIndex must be declared as a scalar
|
* "The variable decorated with VertexIndex must be declared as a scalar
|
||||||
* 32-bit integer."
|
* 32-bit integer."
|
||||||
|
*
|
||||||
|
* "The variable decorated with InstanceIndex must be declared as a scalar
|
||||||
|
* 32-bit integer."
|
||||||
*/
|
*/
|
||||||
static const struct vkd3d_spirv_builtin
|
static const struct vkd3d_spirv_builtin
|
||||||
{
|
{
|
||||||
@ -2587,8 +2590,9 @@ vkd3d_spirv_builtin_table[] =
|
|||||||
|
|
||||||
{VKD3D_SIV_NONE, VKD3DSPR_DEPTHOUT, VKD3D_TYPE_FLOAT, 1, SpvBuiltInFragDepth},
|
{VKD3D_SIV_NONE, VKD3DSPR_DEPTHOUT, VKD3D_TYPE_FLOAT, 1, SpvBuiltInFragDepth},
|
||||||
|
|
||||||
{VKD3D_SIV_POSITION, ~0u, VKD3D_TYPE_FLOAT, 4, SpvBuiltInPosition},
|
{VKD3D_SIV_POSITION, ~0u, VKD3D_TYPE_FLOAT, 4, SpvBuiltInPosition},
|
||||||
{VKD3D_SIV_VERTEX_ID, ~0u, VKD3D_TYPE_INT, 1, SpvBuiltInVertexIndex},
|
{VKD3D_SIV_VERTEX_ID, ~0u, VKD3D_TYPE_INT, 1, SpvBuiltInVertexIndex},
|
||||||
|
{VKD3D_SIV_INSTANCE_ID, ~0u, VKD3D_TYPE_INT, 1, SpvBuiltInInstanceIndex},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct vkd3d_spirv_builtin *vkd3d_get_spirv_builtin(enum vkd3d_shader_register_type reg_type,
|
static const struct vkd3d_spirv_builtin *vkd3d_get_spirv_builtin(enum vkd3d_shader_register_type reg_type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user