mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/hlsl: Reserve register slots for unused buffers.
This commit is contained in:
parent
da36a447b8
commit
abbcf0461f
Notes:
Henri Verbeet
2024-07-08 18:04:49 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/792
@ -4777,7 +4777,7 @@ static const struct hlsl_buffer *get_reserved_buffer(struct hlsl_ctx *ctx, uint3
|
||||
|
||||
LIST_FOR_EACH_ENTRY(buffer, &ctx->buffers, const struct hlsl_buffer, entry)
|
||||
{
|
||||
if (buffer->used_size && buffer->reservation.reg_type == 'b'
|
||||
if (buffer->reservation.reg_type == 'b'
|
||||
&& buffer->reservation.reg_space == space && buffer->reservation.reg_index == index)
|
||||
return buffer;
|
||||
}
|
||||
|
@ -717,7 +717,7 @@ float4 main(uniform float param) : sv_target
|
||||
return glob * param * a * b * c * d * e * f * g * h * i * j * k * l * m;
|
||||
}
|
||||
|
||||
[pixel shader fail todo]
|
||||
[pixel shader fail]
|
||||
// Unused cbuffers still reserve their slot, and count towards the limit.
|
||||
float glob;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user