On Fri Nov 10 02:48:40 2023 +0000, Francisco Casas wrote:
We have validate_buffer_offsets() to perform this check already. I think that the first test added to register-reserations.shader_test already covers this, when run for SM4:
[pixel shader fail(sm<6) todo] // Overlapping register(cX) reservations should only be allowed on SM6. float a : register(c0); float b : register(c0); float4 main() : sv_target { return a + b; }
I meant the checks done by calculate_buffer_offset(). But I see those are only relevant to unaligned reservations, now that I look again.
I think that the first test added to register-reserations.shader_test already covers this, when run for SM4:
It covers the "no overlap" error, but not the "all or nothing" error.