mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Implement texCUBEproj().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
81ff57e07c
commit
418c177a1b
Notes:
Alexandre Julliard
2023-11-10 21:38:12 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/219
@ -3573,7 +3573,8 @@ static bool intrinsic_tex(struct hlsl_ctx *ctx, const struct parse_initializer *
|
||||
}
|
||||
}
|
||||
else if (!strcmp(name, "tex2Dproj")
|
||||
|| !strcmp(name, "tex3Dproj"))
|
||||
|| !strcmp(name, "tex3Dproj")
|
||||
|| !strcmp(name, "texCUBEproj"))
|
||||
{
|
||||
if (!(coords = add_implicit_conversion(ctx, params->instrs, params->args[1],
|
||||
hlsl_get_vector_type(ctx, HLSL_TYPE_FLOAT, 4), loc)))
|
||||
@ -3701,6 +3702,12 @@ static bool intrinsic_texCUBE(struct hlsl_ctx *ctx,
|
||||
return intrinsic_tex(ctx, params, loc, "texCUBE", HLSL_SAMPLER_DIM_CUBE);
|
||||
}
|
||||
|
||||
static bool intrinsic_texCUBEproj(struct hlsl_ctx *ctx,
|
||||
const struct parse_initializer *params, const struct vkd3d_shader_location *loc)
|
||||
{
|
||||
return intrinsic_tex(ctx, params, loc, "texCUBEproj", HLSL_SAMPLER_DIM_CUBE);
|
||||
}
|
||||
|
||||
static bool intrinsic_transpose(struct hlsl_ctx *ctx,
|
||||
const struct parse_initializer *params, const struct vkd3d_shader_location *loc)
|
||||
{
|
||||
@ -3879,6 +3886,7 @@ intrinsic_functions[] =
|
||||
{"tex3D", -1, false, intrinsic_tex3D},
|
||||
{"tex3Dproj", 2, false, intrinsic_tex3Dproj},
|
||||
{"texCUBE", -1, false, intrinsic_texCUBE},
|
||||
{"texCUBEproj", 2, false, intrinsic_texCUBEproj},
|
||||
{"transpose", 1, true, intrinsic_transpose},
|
||||
{"trunc", 1, true, intrinsic_trunc},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user