mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d-shader: Translate dcl_input instructions.
This commit is contained in:
@@ -827,6 +827,21 @@ bool vkd3d_dxbc_compiler_generate_spirv(struct vkd3d_dxbc_compiler *compiler,
|
||||
struct vkd3d_shader_code *spirv) DECLSPEC_HIDDEN;
|
||||
void vkd3d_dxbc_compiler_destroy(struct vkd3d_dxbc_compiler *compiler) DECLSPEC_HIDDEN;
|
||||
|
||||
static inline enum vkd3d_component_type vkd3d_component_type_for_semantic(
|
||||
enum vkd3d_shader_input_sysval_semantic sysval)
|
||||
{
|
||||
switch (sysval)
|
||||
{
|
||||
case VKD3D_SIV_NONE:
|
||||
return VKD3D_TYPE_FLOAT;
|
||||
case VKD3D_SIV_VERTEX_ID:
|
||||
return VKD3D_TYPE_INT;
|
||||
default:
|
||||
FIXME("Unhandled semantic %#x.\n", sysval);
|
||||
return VKD3D_TYPE_FLOAT;
|
||||
}
|
||||
}
|
||||
|
||||
static inline enum vkd3d_component_type vkd3d_component_type_from_data_type(
|
||||
enum vkd3d_data_type data_type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user