diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-25 12:07:49 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-25 12:07:49 -0400 |
commit | 7c1dfec94391ec283e41b6b942d08dbc6bb69a3a (patch) | |
tree | c97c50778aabe4ec40a0e543bf464278e434a939 /engine/xe_pipeline.hpp | |
parent | remove Xe From engine class names (diff) | |
download | minecraftvulkan-7c1dfec94391ec283e41b6b942d08dbc6bb69a3a.tar.gz minecraftvulkan-7c1dfec94391ec283e41b6b942d08dbc6bb69a3a.tar.bz2 minecraftvulkan-7c1dfec94391ec283e41b6b942d08dbc6bb69a3a.zip |
vertex data no longer hard coded
Diffstat (limited to 'engine/xe_pipeline.hpp')
-rwxr-xr-x | engine/xe_pipeline.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engine/xe_pipeline.hpp b/engine/xe_pipeline.hpp index cb601e0..14df508 100755 --- a/engine/xe_pipeline.hpp +++ b/engine/xe_pipeline.hpp @@ -33,7 +33,10 @@ class Pipeline { Device &device, const std::string& vertFilepath, const std::string& fragFilepath, - const PipelineConfigInfo& configInfo); + const PipelineConfigInfo& configInfo, + std::vector<VkVertexInputAttributeDescription> &attributeDescptions, + uint32_t vertexSize + ); ~Pipeline(); Pipeline(const Pipeline&) = delete; @@ -48,7 +51,10 @@ class Pipeline { void createGraphicsPipeline( const std::string& vertFilePath, const std::string& fragFilepath, - const PipelineConfigInfo& configInfo); + const PipelineConfigInfo& configInfo, + std::vector<VkVertexInputAttributeDescription> &attributeDescptions, + uint32_t vertexSize + ); void createShaderModule(const std::vector<char>& code, VkShaderModule* shaderModule); |