Henri Verbeet pushed to branch master at wine / vkd3d
Commits: 45f18a78 by Francisco Casas at 2024-09-04T17:58:56+02:00 vkd3d-shader/hlsl: Parse the shader 'compile' syntax.
The hlsl_ir_compile node is introduced to represent the "compile" syntax, and later the CompileShader() and ConstructGSWithSO() constructs.
It basically represents a function call that remembers its arguments using hlsl_srcs and keeps its own instruction block, which is discarded when working on non-effect shaders.
For shader compilations it can be asserted that args_count is 1, and that this argument (and the last node in hlsl_ir_effect_call.instrs) is a regular hlsl_ir_call pointing to the declaration of the function to be compiled.
- - - - - 7ec44bd7 by Francisco Casas at 2024-09-04T17:59:34+02:00 vkd3d-shader/hlsl: Parse the CompileShader() syntax.
- - - - -
7 changed files:
- libs/vkd3d-shader/hlsl.c - libs/vkd3d-shader/hlsl.h - libs/vkd3d-shader/hlsl.l - libs/vkd3d-shader/hlsl.y - libs/vkd3d-shader/hlsl_codegen.c - libs/vkd3d-shader/vkd3d_shader_private.h - tests/hlsl/effect-compile.shader_test
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/379cd9b7b5715ecd4fb749b9a0cca...