mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d-shader: Implement SV_InstanceID.
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
@@ -2589,6 +2592,7 @@ vkd3d_spirv_builtin_table[] =
|
|||||||
|
|
||||||
{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,
|
||||||
|
Reference in New Issue
Block a user