@@ -77,7 +77,7 @@ struct ShaderDataBuffer {
7777std::array<ShaderDataBuffer, maxFramesInFlight> shaderDataBuffers;
7878struct Texture {
7979 VmaAllocation allocation{ VK_NULL_HANDLE };
80- VkImage image{ VK_NULL_HANDLE };
80+ VkImage image{ VK_NULL_HANDLE };
8181 VkImageView view{ VK_NULL_HANDLE };
8282 VkSampler sampler{ VK_NULL_HANDLE };
8383};
@@ -210,7 +210,7 @@ int main()
210210 Vertex v{
211211 .pos = { attrib.vertices [index.vertex_index * 3 ], -attrib.vertices [index.vertex_index * 3 + 1 ], attrib.vertices [index.vertex_index * 3 + 2 ] },
212212 .normal = { attrib.normals [index.normal_index * 3 ], -attrib.normals [index.normal_index * 3 + 1 ], attrib.normals [index.normal_index * 3 + 2 ] },
213- .uv = { attrib.texcoords [index.texcoord_index * 2 ], 1.0 - attrib.texcoords [index.texcoord_index * 2 + 1 ] }
213+ .uv = { attrib.texcoords [index.texcoord_index * 2 ], 1.0 - attrib.texcoords [index.texcoord_index * 2 + 1 ] }
214214 };
215215 vertices.push_back (v);
216216 indices.push_back (indices.size ());
@@ -436,7 +436,7 @@ int main()
436436 for (auto i = 0 ; i < 3 ; i++) {
437437 auto instancePos = glm::vec3 ((float )(i - 1 ) * 3 .0f , 0 .0f , 0 .0f );
438438 shaderData.model [i] = glm::translate (glm::mat4 (1 .0f ), instancePos) * glm::mat4_cast (glm::quat (objectRotations[i]));
439- }
439+ }
440440 memcpy (shaderDataBuffers[frameIndex].mapped , &shaderData, sizeof (ShaderData));
441441 // Build command buffer
442442 auto cb = commandBuffers[frameIndex];
0 commit comments