Skip to content
Snippets Groups Projects
Commit 4de9405a authored by Józef Kucia's avatar Józef Kucia
Browse files

libs/vkd3d-shader: Allow input declarations with no write mask.

parent 6dbdb872
No related branches found
No related tags found
No related merge requests found
......@@ -1525,6 +1525,10 @@ static uint32_t vkd3d_dxbc_compiler_emit_input(struct vkd3d_dxbc_compiler *compi
SpvStorageClass storage_class;
component_count = vkd3d_write_mask_component_count(dst->write_mask);
/* vThreadIDInGroupFlattened is declared with no write mask in shader
* bytecode generated by fxc. */
if (!dst->write_mask)
component_count = 1;
if (!(input_component_count = vkd3d_dxbc_compiler_get_sysval_component_count(sysval)))
input_component_count = component_count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment