mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d-shader: Translate exp instructions.
This commit is contained in:
@@ -2521,6 +2521,7 @@ static enum GLSLstd450 vkd3d_dxbc_compiler_map_ext_glsl_instruction(
|
|||||||
}
|
}
|
||||||
glsl_insts[] =
|
glsl_insts[] =
|
||||||
{
|
{
|
||||||
|
{VKD3DSIH_EXP, GLSLstd450Exp2},
|
||||||
{VKD3DSIH_FIRSTBIT_HI, GLSLstd450FindUMsb},
|
{VKD3DSIH_FIRSTBIT_HI, GLSLstd450FindUMsb},
|
||||||
{VKD3DSIH_FIRSTBIT_LO, GLSLstd450FindILsb},
|
{VKD3DSIH_FIRSTBIT_LO, GLSLstd450FindILsb},
|
||||||
{VKD3DSIH_FIRSTBIT_SHI, GLSLstd450FindSMsb},
|
{VKD3DSIH_FIRSTBIT_SHI, GLSLstd450FindSMsb},
|
||||||
@@ -3113,6 +3114,7 @@ void vkd3d_dxbc_compiler_handle_instruction(struct vkd3d_dxbc_compiler *compiler
|
|||||||
case VKD3DSIH_XOR:
|
case VKD3DSIH_XOR:
|
||||||
vkd3d_dxbc_compiler_emit_alu_instruction(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_alu_instruction(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
|
case VKD3DSIH_EXP:
|
||||||
case VKD3DSIH_FIRSTBIT_HI:
|
case VKD3DSIH_FIRSTBIT_HI:
|
||||||
case VKD3DSIH_FIRSTBIT_LO:
|
case VKD3DSIH_FIRSTBIT_LO:
|
||||||
case VKD3DSIH_FIRSTBIT_SHI:
|
case VKD3DSIH_FIRSTBIT_SHI:
|
||||||
|
Reference in New Issue
Block a user