Skip to content

Commit 6fbb79c

Browse files
committed
Remove unused helper function
1 parent e9526a9 commit 6fbb79c

9 files changed

Lines changed: 0 additions & 45 deletions

File tree

attachments/30_multisampling.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,6 @@ class HelloTriangleApplication
588588
vk::FormatFeatureFlagBits::eDepthStencilAttachment);
589589
}
590590

591-
static bool hasStencilComponent(vk::Format format)
592-
{
593-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
594-
}
595-
596591
void createTextureImage()
597592
{
598593
int texWidth, texHeight, texChannels;

attachments/32_ecosystem_utilities.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,11 +843,6 @@ class HelloTriangleApplication
843843
vk::FormatFeatureFlagBits::eDepthStencilAttachment);
844844
}
845845

846-
static bool hasStencilComponent(vk::Format format)
847-
{
848-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
849-
}
850-
851846
void createTextureImage()
852847
{
853848
int texWidth, texHeight, texChannels;

attachments/35_gltf_ktx.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -773,11 +773,6 @@ class VulkanApplication
773773
vk::FormatFeatureFlagBits::eDepthStencilAttachment);
774774
}
775775

776-
static bool hasStencilComponent(vk::Format format)
777-
{
778-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
779-
}
780-
781776
void createTextureImage()
782777
{
783778
// Load KTX2 texture instead of using stb_image

attachments/36_multiple_objects.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -844,11 +844,6 @@ class VulkanApplication
844844
vk::FormatFeatureFlagBits::eDepthStencilAttachment);
845845
}
846846

847-
static bool hasStencilComponent(vk::Format format)
848-
{
849-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
850-
}
851-
852847
void createTextureImage()
853848
{
854849
// Load KTX2 texture instead of using stb_image

attachments/38_ray_tracing.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -736,11 +736,6 @@ class VulkanRaytracingApplication
736736
vk::FormatFeatureFlagBits::eDepthStencilAttachment);
737737
}
738738

739-
static bool hasStencilComponent(vk::Format format)
740-
{
741-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
742-
}
743-
744739
std::pair<vk::raii::Image, vk::raii::DeviceMemory> createTextureImage(const std::string &path)
745740
{
746741
int texWidth, texHeight, texChannels;

attachments/advanced_gltf/renderer_utils.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ vk::Format Renderer::findDepthFormat() {
7979
}
8080
}
8181

82-
// Check if format has stencil component
83-
bool Renderer::hasStencilComponent(vk::Format format) {
84-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
85-
}
86-
8782
// Read file
8883
std::vector<char> Renderer::readFile(const std::string& filename) {
8984
try {

attachments/openxr_engine/renderer_utils.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ vk::Format Renderer::findDepthFormat() {
8080
}
8181
}
8282

83-
// Check if format has stencil component
84-
bool Renderer::hasStencilComponent(vk::Format format) {
85-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
86-
}
87-
8883
// Read file
8984
std::vector<char> Renderer::readFile(const std::string& filename) {
9085
try {

attachments/simple_engine/renderer_utils.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ vk::Format Renderer::findDepthFormat() {
8080
}
8181
}
8282

83-
// Check if format has stencil component
84-
bool Renderer::hasStencilComponent(vk::Format format) {
85-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
86-
}
87-
8883
// Read file
8984
std::vector<char> Renderer::readFile(const std::string& filename) {
9085
try {

attachments/sync2_engine/renderer_utils.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ vk::Format Renderer::findDepthFormat() {
8080
}
8181
}
8282

83-
// Check if format has stencil component
84-
bool Renderer::hasStencilComponent(vk::Format format) {
85-
return format == vk::Format::eD32SfloatS8Uint || format == vk::Format::eD24UnormS8Uint;
86-
}
87-
8883
// Resolve path
8984
std::string Renderer::ResolvePath(const std::string& filename) const {
9085
if (filename.empty()) return "";

0 commit comments

Comments
 (0)