Francisco Casas
17d6a4411e
vkd3d-shader/hlsl: Validate that non-uniform objects are not referenced.
...
Note that in the future we should call
validate_static_object_references() after DCE and pruning branches,
because shaders such as these compile (at least in more modern versions
of the native compiler):
Branch pruning:
```
static RWTexture2D<float> tex;
float4 main() : sv_target
{
if (0)
{
tex[int2(0, 0)] = 2;
}
return 0;
}
```
DCE:
```
static Texture2D tex;
uniform uint i;
float4 main() : sv_target
{
float4 unused = tex.Load(int3(0, 1, 2));
return 0;
}
```
These are "todo" tests in hlsl-static-initializer.shader_test
that depend on this.
2023-01-19 12:29:39 +01:00
..
2020-11-24 22:28:11 +01:00
2022-10-19 21:59:18 +02:00
2022-10-19 21:59:18 +02:00
2022-10-12 21:57:59 +02:00
2022-03-08 17:45:21 +01:00
2022-11-08 20:52:57 +01:00
2022-11-08 20:52:57 +01:00
2022-07-05 22:43:18 +02:00
2022-07-05 22:43:18 +02:00
2022-11-18 22:29:06 +01:00
2022-11-08 20:53:08 +01:00
2022-04-20 16:41:46 +02:00
2019-08-12 09:31:19 +02:00
2022-11-21 18:28:42 +01:00
2022-03-08 17:45:21 +01:00
2022-11-08 20:52:57 +01:00
2022-11-08 20:53:03 +01:00
2022-07-05 22:43:18 +02:00
2023-01-11 16:02:56 +01:00
2020-10-02 19:04:03 +02:00
2021-11-22 16:25:05 +01:00
2022-11-08 20:52:57 +01:00
2022-11-08 20:52:57 +01:00
2022-11-08 20:52:57 +01:00
2023-01-13 17:32:43 +01:00
2022-01-26 18:36:28 +01:00
2022-11-08 20:52:57 +01:00
2022-04-27 21:45:41 +02:00
2022-04-27 21:45:41 +02:00
2022-04-27 21:45:41 +02:00
2022-06-09 19:13:22 +02:00
2022-04-15 21:18:15 +02:00
2022-11-08 20:52:57 +01:00
2022-04-27 21:45:41 +02:00
2022-04-27 21:45:41 +02:00
2022-11-08 20:52:57 +01:00
2022-11-10 22:48:21 +01:00
2023-01-11 16:02:56 +01:00
2023-01-11 16:02:56 +01:00
2022-06-09 19:13:29 +02:00
2022-05-02 11:30:18 +02:00
2023-01-11 16:02:53 +01:00
2022-04-27 21:45:45 +02:00
2022-05-02 11:30:18 +02:00
2023-01-13 17:32:42 +01:00
2023-01-13 17:32:42 +01:00
2022-04-15 21:18:06 +02:00
2022-02-04 16:45:57 +01:00
2023-01-11 16:02:56 +01:00
2023-01-19 12:29:39 +01:00
2022-11-08 20:52:57 +01:00
2022-04-07 18:32:21 +02:00
2022-04-08 11:49:31 +02:00
2023-01-11 16:02:50 +01:00
2022-11-08 20:52:57 +01:00
2022-04-20 23:02:11 +02:00
2022-07-05 22:43:28 +02:00
2022-03-08 17:45:16 +01:00
2022-06-09 19:13:22 +02:00
2023-01-11 16:02:56 +01:00
2022-06-09 19:13:12 +02:00
2022-03-22 18:41:43 +01:00
2023-01-19 12:29:39 +01:00
2023-01-11 16:02:59 +01:00
2020-11-23 22:07:44 +01:00
2020-11-24 22:28:05 +01:00
2022-11-08 20:52:57 +01:00
2022-10-19 21:59:29 +02:00
2023-01-19 12:29:39 +01:00
2022-10-19 21:59:29 +02:00
2022-11-08 20:52:59 +01:00
2022-10-19 21:59:29 +02:00
2020-10-01 21:47:51 +02:00
2020-10-01 21:47:51 +02:00
2020-10-01 21:47:51 +02:00
2020-10-01 21:47:51 +02:00
2020-10-01 21:47:51 +02:00
2022-10-19 21:59:55 +02:00
2022-11-08 20:52:57 +01:00
2022-11-08 20:53:08 +01:00
2023-01-13 17:32:42 +01:00
2022-11-08 20:52:57 +01:00
2022-04-20 16:41:42 +02:00
2019-07-05 17:52:04 +02:00
2021-10-06 18:35:46 +02:00
2022-10-19 21:59:29 +02:00
2021-03-15 20:39:13 +01:00