Refactoring, use Vulkan result check macro, staging
This commit is contained in:
parent
875f4a93ea
commit
29d726482e
3 changed files with 202 additions and 172 deletions
|
|
@ -44,6 +44,19 @@ struct Vertex
|
|||
}
|
||||
};
|
||||
|
||||
struct GearInfo
|
||||
{
|
||||
float innerRadius;
|
||||
float outerRadius;
|
||||
float width;
|
||||
int numTeeth;
|
||||
float toothDepth;
|
||||
glm::vec3 color;
|
||||
glm::vec3 pos;
|
||||
float rotSpeed;
|
||||
float rotOffset;
|
||||
};
|
||||
|
||||
class VulkanGear
|
||||
{
|
||||
private:
|
||||
|
|
@ -96,7 +109,7 @@ public:
|
|||
VulkanGear(VkDevice device, VulkanExampleBase *example);
|
||||
~VulkanGear();
|
||||
|
||||
void generate(float inner_radius, float outer_radius, float width, int teeth, float tooth_depth, glm::vec3 color, glm::vec3 pos, float rotSpeed, float rotOffset);
|
||||
void generate(GearInfo *gearinfo, VkQueue queue);
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue