vkd3d/libs
Francisco Casas 5cfc8d378f vkd3d-shader/hlsl: Initialize static variables to 0 by default.
We are currently not initializing static values to zero by default.

Consider the following shader:
```hlsl
static float4 va;

float4 main() : sv_target
{
  return va;
}
```
we get the following output:
```
ps_5_0
dcl_output o0.xyzw
dcl_temps 2
mov r0.xyzw, r1.xyzw
mov o0.xyzw, r0.xyzw
ret
```
where r1.xyzw is not initialized.

This patch solves this by assigning the static variable the value of an
uint 0, and thus, relying on complex broadcasts.

This seems to be the behaviour of the 9.29.952.3111 version of the native
compiler, since it retrieves the following error on a shader that lacks
an initializer on a data type with object components:

```
error X3017: cannot convert from 'uint' to 'struct <unnamed>'
```
2023-01-19 12:29:36 +01:00
..
vkd3d Release 1.6. 2022-12-07 16:08:16 +01:00
vkd3d-common vkd3d-common: Always prefix debug output with "vkd3d". 2022-11-08 20:52:27 +01:00
vkd3d-shader vkd3d-shader/hlsl: Initialize static variables to 0 by default. 2023-01-19 12:29:36 +01:00
vkd3d-utils Release 1.6. 2022-12-07 16:08:16 +01:00
.gitignore libs/vkd3d: Trace build version. 2018-06-27 22:43:49 +02:00