[require] shader model >= 5.0 [uav 2] stride 16 size (buffer, 2) 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 [pixel shader todo] struct s { float3 a; }; struct s2 { float4x4 f1, f2, f3; }; RWStructuredBuffer u : register(u2); RWStructuredBuffer u1; RWStructuredBuffer u2; RWStructuredBuffer u3; RWStructuredBuffer u4; RWStructuredBuffer u5; float4 main() : sv_target1 { u[0] = float4(11.1, 12.2, 13.3, 14.4); u[1] = float4(15.5, 16.6, 17.7, 18.8); return 0; } [test] todo(sm<6) draw quad todo probe uav 2 (0) rgba (11.1, 12.2, 13.3, 14.4) todo probe uav 2 (1) rgba (15.5, 16.6, 17.7, 18.8) [pixel shader todo] struct s { float3 a; }; struct s2 { float4x4 f1, f2, f3; }; RasterizerOrderedStructuredBuffer u : register(u2); RasterizerOrderedStructuredBuffer u1; RasterizerOrderedStructuredBuffer u2; RasterizerOrderedStructuredBuffer u3; RasterizerOrderedStructuredBuffer u4; RasterizerOrderedStructuredBuffer u5; float4 main() : sv_target1 { u[0] = float4(11.1, 12.2, 13.3, 14.4); return 0; } % Array type [pixel shader] typedef float arr[2]; RWStructuredBuffer u; float4 main() : sv_target1 { return 0; } [pixel shader] typedef float arr[2]; RasterizerOrderedStructuredBuffer u; float4 main() : sv_target1 { return 0; } % Object types [pixel shader fail(sm<6)] RWStructuredBuffer u; float4 main() : sv_target1 { return 0; } [pixel shader fail] struct s { Texture2D t; }; RWStructuredBuffer u; float4 main() : sv_target1 { return 0; } [pixel shader fail(sm<6)] RasterizerOrderedStructuredBuffer u; float4 main() : sv_target1 { return 0; } [pixel shader fail] struct s { Texture2D t; }; RasterizerOrderedStructuredBuffer u; float4 main() : sv_target1 { return 0; } [pixel shader todo] struct apple { float3 a, x; }; RWStructuredBuffer u; float4 main() : sv_target { u[0].x = float3(30.0, 40.0, 50.0); return 0; } [uav 2] stride 16 size (buffer, 2) 1 2 3 4 5 6 7 8 [pixel shader todo] RWStructuredBuffer u : register(u2); float4 main() : sv_target1 { u[0] = int4(11, -12, 13, -14); u[1] = int4(-15, 16, -17, 18); return 0; } [test] todo(sm<6) draw quad todo probe uav 2 (0) rgbai (11, -12, 13, -14) todo probe uav 2 (1) rgbai (-15, 16, -17, 18)