vkd3d-shader/hlsl: Broaden resources support v2, part 2.
- May 08, 2023
-
-
This is just a wrapper of vkd3d_calloc(), that has the advantage of checking for multiplication overflow.
-
The new fixmes can be triggered in presence of object components within structs (for SM5). In shaders such as this one: struct apple { Texture2D tex : TEX; float4 color : COLOR; }; float4 main(struct apple input) : sv_target { return input.tex.Load(int3(1, 2, 3)); } Or this one: struct { Texture2D tex; float4 color; } s; float4 main() : sv_target { return s.tex.Load(int3(1, 2, 3)); }
-
-
-
-
-
-
-
-
Variables that contain more than one object (arrays or structs) require the allocation of contiguous registers in the respective object register spaces.
-
-