2021-10-05 00:17:24 +13:00
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-10-05 00:27:45 +13:00
|
|
|
|
namespace CameraRenderer_cpp
|
2021-10-05 00:17:24 +13:00
|
|
|
|
{
|
|
|
|
|
// Constant buffer used to send MVP matrices to the vertex shader.
|
|
|
|
|
struct ModelViewProjectionConstantBuffer
|
|
|
|
|
{
|
|
|
|
|
DirectX::XMFLOAT4X4 model;
|
|
|
|
|
DirectX::XMFLOAT4X4 view;
|
|
|
|
|
DirectX::XMFLOAT4X4 projection;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Used to send per-vertex data to the vertex shader.
|
|
|
|
|
struct VertexPositionColor
|
|
|
|
|
{
|
|
|
|
|
DirectX::XMFLOAT3 pos;
|
|
|
|
|
DirectX::XMFLOAT3 color;
|
|
|
|
|
};
|
|
|
|
|
}
|