Skip to content

Commit

Permalink
Removed outdated todos
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaWillems committed Jan 21, 2024
1 parent afde90d commit 213bf85
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion base/VulkanFrameBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ namespace vks
imageView.viewType = (createinfo.layerCount == 1) ? VK_IMAGE_VIEW_TYPE_2D : VK_IMAGE_VIEW_TYPE_2D_ARRAY;
imageView.format = createinfo.format;
imageView.subresourceRange = attachment.subresourceRange;
//todo: workaround for depth+stencil attachments
imageView.subresourceRange.aspectMask = (attachment.hasDepth()) ? VK_IMAGE_ASPECT_DEPTH_BIT : aspectMask;
imageView.image = attachment.image;
VK_CHECK_RESULT(vkCreateImageView(vulkanDevice->logicalDevice, &imageView, nullptr, &attachment.view));
Expand Down
3 changes: 1 addition & 2 deletions examples/indirectdraw/indirectdraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ class VulkanExample : public VulkanExampleBase
VkDrawIndexedIndirectCommand indirectCmd{};
indirectCmd.instanceCount = OBJECT_INSTANCE_COUNT;
indirectCmd.firstInstance = m * OBJECT_INSTANCE_COUNT;
// @todo: Multiple primitives
// A glTF node may consist of multiple primitives, so we may have to do multiple commands per mesh
// A glTF node may consist of multiple primitives, but for this saample we only care for the first primitive
indirectCmd.firstIndex = node->mesh->primitives[0]->firstIndex;
indirectCmd.indexCount = node->mesh->primitives[0]->indexCount;

Expand Down
1 change: 0 additions & 1 deletion examples/raytracingshadows/raytracingshadows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ class VulkanExample : public VulkanRaytracingSample
&primitive_count,
&accelerationStructureBuildSizesInfo);

// @todo: as return value?
createAccelerationStructure(topLevelAS, VK_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHR, accelerationStructureBuildSizesInfo);

// Create a small scratch buffer used during build of the top level acceleration structure
Expand Down
1 change: 0 additions & 1 deletion examples/texturemipmapgen/texturemipmapgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ class VulkanExample : public VulkanExampleBase
{
uniformData.projection = camera.matrices.perspective;
uniformData.view = camera.matrices.view;
// @todo: paused
uniformData.model = glm::rotate(glm::mat4(1.0f), glm::radians(timer * 360.0f), glm::vec3(1.0f, 0.0f, 0.0f));
uniformData.viewPos = glm::vec4(camera.position, 0.0f) * glm::vec4(-1.0f);
memcpy(uniformBuffer.mapped, &uniformData, sizeof(uniformData));
Expand Down
1 change: 0 additions & 1 deletion examples/vertexattributes/vertexattributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class VulkanExample : public VulkanExampleBase
} vertexAttributeBuffers;

// Buffers for the separate vertex attributes
// @todo: rename
struct SeparateVertexBuffers {
vks::Buffer pos, normal, uv, tangent;
} separateVertexBuffers;
Expand Down

0 comments on commit 213bf85

Please sign in to comment.