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?