ShaderStructures.h 393 B

12345678910111213141516171819
  1. #pragma once
  2. namespace TemplateApp
  3. {
  4. // Constant buffer used to send MVP matrices to the vertex shader.
  5. struct ModelViewProjectionConstantBuffer
  6. {
  7. DirectX::XMFLOAT4X4 model;
  8. DirectX::XMFLOAT4X4 view;
  9. DirectX::XMFLOAT4X4 projection;
  10. };
  11. // Used to send per-vertex data to the vertex shader.
  12. struct VertexPositionColor
  13. {
  14. DirectX::XMFLOAT3 pos;
  15. DirectX::XMFLOAT3 color;
  16. };
  17. }