struct LightBuffer { XMFLOAT4 ambientColor; XMFLOAT4 diffuseColor; ... to align elements in your C++ structs to match your HLSL structs.
確定! 回上一頁