vkd3d-shader/hlsl: Add support for writing RWStructuredBuffer declarations.
4 unresolved threads
4 unresolved threads
Compare changes
- Nikolay Sivov authored
+ 43
− 7
@@ -4146,6 +4146,8 @@ static void validate_texture_format_type(struct hlsl_ctx *ctx, struct hlsl_type
@@ -4955,7 +4957,15 @@ texture_ms_type:
@@ -5087,16 +5097,42 @@ type_no_void:
I suspect this should be the reg_size of HLSL_REGSET_NUMERIC instead, since types with <=4 components but with more than 4 32-bit components, such as
RWBuffer<double3>
, are not allowed.Ah well, it makes sense.
This does not work for float2x2 for example. It probably should be using component_count * reg_size_of_component, or something like that. Except that we don't seem to support doubles. I'm going to add a todo for this.