Skip to content

vkd3d-shader/ir: Rename vkd3d_shader_instruction to ir_instr.

Elizabeth Figura requested to merge zfigura/vkd3d:pr2 into master

There are a few motivations for this:

  • Identifiers beginning with vkd3d_shader_ look like external API. Changing the prefix makes it clear that this is an internal API.

  • vkd3d_shader is a very long prefix, which is annoying to type [not least because "vkd3d" itself is an unwieldy name.] This is also a motivation for shortening "instruction" to "instr".

  • The "vkd3d_instruction" is increasingly growing from a simple parsed representation of sm4 bytecode, to a proper IR in its own right—e.g. we are using it for sm1 and sm6, are performing passes over it, and we have plans to extend its scope further, e.g. to HLSL compilation. Give it a name that reflects and clearly communicates what it is.

Merge request reports

Loading