From 6fbb79c0eaffab9e930d7d47ce6a04a76eea73dd Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Thu, 16 Jul 2026 18:33:02 +0200 Subject: [PATCH] Remove unused helper function --- attachments/30_multisampling.cpp | 5 ----- attachments/32_ecosystem_utilities.cpp | 5 ----- attachments/35_gltf_ktx.cpp | 5 ----- attachments/36_multiple_objects.cpp | 5 ----- attachments/38_ray_tracing.cpp | 5 ----- attachments/advanced_gltf/renderer_utils.cpp | 5 ----- attachments/openxr_engine/renderer_utils.cpp | 5 ----- attachments/simple_engine/renderer_utils.cpp | 5 ----- attachments/sync2_engine/renderer_utils.cpp | 5 ----- 9 files changed, 45 deletions(-) diff --git a/attachments/30_multisampling.cpp b/attachments/30_multisampling.cpp index 862a96f0f..234a78b68 100644 --- a/attachments/30_multisampling.cpp +++ b/attachments/30_multisampling.cpp @@ -588,11 +588,6 @@ class HelloTriangleApplication vk::FormatFeatureFlagBits::eDepthStencilAttachment); } - static bool hasStencilComponent(vk::Format format) - { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; - } - void createTextureImage() { int texWidth, texHeight, texChannels; diff --git a/attachments/32_ecosystem_utilities.cpp b/attachments/32_ecosystem_utilities.cpp index a0a4c2d2f..3e493a2c5 100644 --- a/attachments/32_ecosystem_utilities.cpp +++ b/attachments/32_ecosystem_utilities.cpp @@ -843,11 +843,6 @@ class HelloTriangleApplication vk::FormatFeatureFlagBits::eDepthStencilAttachment); } - static bool hasStencilComponent(vk::Format format) - { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; - } - void createTextureImage() { int texWidth, texHeight, texChannels; diff --git a/attachments/35_gltf_ktx.cpp b/attachments/35_gltf_ktx.cpp index 777010f40..accba85b2 100644 --- a/attachments/35_gltf_ktx.cpp +++ b/attachments/35_gltf_ktx.cpp @@ -773,11 +773,6 @@ class VulkanApplication vk::FormatFeatureFlagBits::eDepthStencilAttachment); } - static bool hasStencilComponent(vk::Format format) - { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; - } - void createTextureImage() { // Load KTX2 texture instead of using stb_image diff --git a/attachments/36_multiple_objects.cpp b/attachments/36_multiple_objects.cpp index 9afc90037..6645a569c 100644 --- a/attachments/36_multiple_objects.cpp +++ b/attachments/36_multiple_objects.cpp @@ -844,11 +844,6 @@ class VulkanApplication vk::FormatFeatureFlagBits::eDepthStencilAttachment); } - static bool hasStencilComponent(vk::Format format) - { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; - } - void createTextureImage() { // Load KTX2 texture instead of using stb_image diff --git a/attachments/38_ray_tracing.cpp b/attachments/38_ray_tracing.cpp index e0843931c..417f5b9db 100644 --- a/attachments/38_ray_tracing.cpp +++ b/attachments/38_ray_tracing.cpp @@ -736,11 +736,6 @@ class VulkanRaytracingApplication vk::FormatFeatureFlagBits::eDepthStencilAttachment); } - static bool hasStencilComponent(vk::Format format) - { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; - } - std::pair createTextureImage(const std::string &path) { int texWidth, texHeight, texChannels; diff --git a/attachments/advanced_gltf/renderer_utils.cpp b/attachments/advanced_gltf/renderer_utils.cpp index 46319fbf2..80a8e83e7 100644 --- a/attachments/advanced_gltf/renderer_utils.cpp +++ b/attachments/advanced_gltf/renderer_utils.cpp @@ -79,11 +79,6 @@ vk::Format Renderer::findDepthFormat() { } } -// Check if format has stencil component -bool Renderer::hasStencilComponent(vk::Format format) { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; -} - // Read file std::vector Renderer::readFile(const std::string& filename) { try { diff --git a/attachments/openxr_engine/renderer_utils.cpp b/attachments/openxr_engine/renderer_utils.cpp index a5104a046..72424d194 100644 --- a/attachments/openxr_engine/renderer_utils.cpp +++ b/attachments/openxr_engine/renderer_utils.cpp @@ -80,11 +80,6 @@ vk::Format Renderer::findDepthFormat() { } } -// Check if format has stencil component -bool Renderer::hasStencilComponent(vk::Format format) { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; -} - // Read file std::vector Renderer::readFile(const std::string& filename) { try { diff --git a/attachments/simple_engine/renderer_utils.cpp b/attachments/simple_engine/renderer_utils.cpp index eef4d3ee9..6522cf83a 100644 --- a/attachments/simple_engine/renderer_utils.cpp +++ b/attachments/simple_engine/renderer_utils.cpp @@ -80,11 +80,6 @@ vk::Format Renderer::findDepthFormat() { } } -// Check if format has stencil component -bool Renderer::hasStencilComponent(vk::Format format) { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; -} - // Read file std::vector Renderer::readFile(const std::string& filename) { try { diff --git a/attachments/sync2_engine/renderer_utils.cpp b/attachments/sync2_engine/renderer_utils.cpp index 5df269f0a..7f0fca457 100644 --- a/attachments/sync2_engine/renderer_utils.cpp +++ b/attachments/sync2_engine/renderer_utils.cpp @@ -80,11 +80,6 @@ vk::Format Renderer::findDepthFormat() { } } -// Check if format has stencil component -bool Renderer::hasStencilComponent(vk::Format format) { - return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint; -} - // Resolve path std::string Renderer::ResolvePath(const std::string& filename) const { if (filename.empty()) return "";