12 Mar
2024
12 Mar
'24
5:03 p.m.
Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.y:
state_block_start: %empty - { - ctx->in_state_block = 1; - } + { + ctx->in_state_block = 1; + hlsl_push_scope(ctx); + }
state_block: %empty + { + if (!($$ = hlsl_alloc(ctx, sizeof(*$$)))) + YYABORT; + } Why make it a pointer?
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/708#note_64437