Reworked triangle sample
Now uses proper sync and multiple concurrent frames Better and more consistent naming Additional comments Refs #871
This commit is contained in:
parent
9dcc8110cf
commit
31973df69b
2 changed files with 512 additions and 597 deletions
|
|
@ -80,7 +80,6 @@ private:
|
|||
uint32_t destWidth;
|
||||
uint32_t destHeight;
|
||||
bool resizing = false;
|
||||
void windowResize();
|
||||
void handleMouseMove(int32_t x, int32_t y);
|
||||
void nextFrame();
|
||||
void updateOverlay();
|
||||
|
|
@ -377,6 +376,8 @@ public:
|
|||
/** @brief Loads a SPIR-V shader file for the given shader stage */
|
||||
VkPipelineShaderStageCreateInfo loadShader(std::string fileName, VkShaderStageFlagBits stage);
|
||||
|
||||
void windowResize();
|
||||
|
||||
/** @brief Entry point for the main render loop */
|
||||
void renderLoop();
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue