mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Parse Buffer types.
This commit is contained in:
committed by
Alexandre Julliard
parent
4fe9ab0a90
commit
c249461e97
Notes:
Alexandre Julliard
2024-02-19 22:59:16 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/569
@@ -4764,6 +4764,13 @@ static void write_sm4_resinfo(const struct tpf_writer *tpf, const struct hlsl_ir
|
||||
const struct hlsl_ir_node *dst = &load->node;
|
||||
struct sm4_instruction instr;
|
||||
|
||||
if (resource->data_type->sampler_dim == HLSL_SAMPLER_DIM_BUFFER
|
||||
|| resource->data_type->sampler_dim == HLSL_SAMPLER_DIM_STRUCTURED_BUFFER)
|
||||
{
|
||||
hlsl_fixme(tpf->ctx, &load->node.loc, "resinfo for buffers.");
|
||||
return;
|
||||
}
|
||||
|
||||
assert(dst->data_type->base_type == HLSL_TYPE_UINT || dst->data_type->base_type == HLSL_TYPE_FLOAT);
|
||||
|
||||
memset(&instr, 0, sizeof(instr));
|
||||
|
||||
Reference in New Issue
Block a user