If the C++ structure and HLSL constant buffer are as follows: // cpp struct S1 { XMFLOAT3 p1; XMFLOAT3 p2; }; // HLSL cbuffer C1 { float4 v1; float4 v2; }.
確定! 回上一頁