Skip to content

Commit

Permalink
Merge pull request #2382 from billhollings/misc-cleanup
Browse files Browse the repository at this point in the history
Minor cleanups.
  • Loading branch information
billhollings authored Oct 18, 2024
2 parents 30332f3 + f03cb6b commit 4253a40
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions MoltenVK/MoltenVK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2705,6 +2705,7 @@
WARNING_CFLAGS = (
"-Wreorder",
"-Wheader-hygiene",
"-Wunused-but-set-variable",
);
};
name = Debug;
Expand Down Expand Up @@ -2782,6 +2783,7 @@
WARNING_CFLAGS = (
"-Wreorder",
"-Wheader-hygiene",
"-Wunused-but-set-variable",
);
};
name = Release;
Expand Down
2 changes: 0 additions & 2 deletions MoltenVK/MoltenVK/GPUObjects/MVKImage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2480,7 +2480,6 @@ static MSLSamplerYCbCrRange getSpvSamplerYcbcrRangeFromVkSamplerYcbcrRange(VkSam

MVKSampler::MVKSampler(MVKDevice* device, const VkSamplerCreateInfo* pCreateInfo) : MVKVulkanAPIDeviceObject(device) {
_ycbcrConversion = NULL;
const VkSamplerReductionModeCreateInfo* pSampReductInfo = nullptr;
for (const auto* next = (const VkBaseInStructure*)pCreateInfo->pNext; next; next = next->pNext) {
switch (next->sType) {
case VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO_KHR: {
Expand All @@ -2489,7 +2488,6 @@ static MSLSamplerYCbCrRange getSpvSamplerYcbcrRangeFromVkSamplerYcbcrRange(VkSam
break;
}
case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO: {
pSampReductInfo = (const VkSamplerReductionModeCreateInfo*)next;
break;
}
default:
Expand Down
2 changes: 2 additions & 0 deletions MoltenVK/MoltenVK/Utility/MVKBitArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include "MVKFoundation.h"

#include <functional>


#pragma mark -
#pragma mark MVKBitArray
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,11 @@
PRODUCT_NAME = MoltenVKShaderConverter;
SKIP_INSTALL = YES;
TVOS_DEPLOYMENT_TARGET = 13.0;
WARNING_CFLAGS = "-Wreorder";
WARNING_CFLAGS = (
"-Wreorder",
"-Wheader-hygiene",
"-Wunused-but-set-variable",
);
};
name = Debug;
};
Expand Down Expand Up @@ -801,7 +805,11 @@
SKIP_INSTALL = YES;
TVOS_DEPLOYMENT_TARGET = 13.0;
VALIDATE_PRODUCT = YES;
WARNING_CFLAGS = "-Wreorder";
WARNING_CFLAGS = (
"-Wreorder",
"-Wheader-hygiene",
"-Wunused-but-set-variable",
);
};
name = Release;
};
Expand Down

0 comments on commit 4253a40

Please sign in to comment.