#pragma once #include using DirectX::XMFLOAT2; using DirectX::XMFLOAT3; // 用于定义顶点的结构,三维坐标 // position[3] + texture[2] + slot[1] struct StructVertex { DirectX::XMFLOAT3 pos; DirectX::XMFLOAT2 texCoord; float slot; }; struct StructPixelConstBuf { struct { float r; float g; float b; float a; } face_colors[12]; };