若C++结构体和HLSL常量缓冲区如下: // cpp struct S1 { XMFLOAT3 p1; XMFLOAT3 p2; }; // HLSL cbuffer C1 { float4 v1; float4 v2; }.
確定! 回上一頁