mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d-shader: Allow input declarations with no write mask.
This commit is contained in:
parent
6dbdb872fc
commit
4de9405a7b
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user