Newer
Older
ForwardPlusRenderer / include / Vertex.h
#pragma once
#include <stdafx.h>
#include "Vertex.h"
namespace fpr
{
 //Used in pipeline creation, needed to allow shaders to access vertex data appropriately. 
struct VertexInfo
{
  std::vector<vk::VertexInputBindingDescription>   input_bindings;
  std::vector<vk::VertexInputAttributeDescription> input_attributes;
};
struct Vertex
{
  glm::vec3 position;
  glm::vec3 color;
  glm::vec2 uv;
  glm::vec3 normal;
  glm::vec4 tangent;
  glm::vec4 bitangent;

  static VertexInfo MakeVertexInputStateData();
};
} // namespace fpr