fix some warnings
This commit is contained in:
parent
7d1b1e7e8e
commit
ef08f0d9fb
@ -131,7 +131,7 @@ bool MVKBuffer::needsHostReadSync(VkPipelineStageFlags srcStageMask,
|
|||||||
mvkIsAnyFlagEnabled(barrier.dstAccessMask, (VK_ACCESS_HOST_READ_BIT)) &&
|
mvkIsAnyFlagEnabled(barrier.dstAccessMask, (VK_ACCESS_HOST_READ_BIT)) &&
|
||||||
isMemoryHostAccessible() && (!isMemoryHostCoherent() || _isHostCoherentTexelBuffer));
|
isMemoryHostAccessible() && (!isMemoryHostCoherent() || _isHostCoherentTexelBuffer));
|
||||||
#endif
|
#endif
|
||||||
#if MVK_IOS
|
#if MVK_IOS_OR_TVOS
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -1955,7 +1955,7 @@ void MVKPhysicalDevice::initMemoryProperties() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MVKPhysicalDevice::getHasUnifiedMemory() {
|
bool MVKPhysicalDevice::getHasUnifiedMemory() {
|
||||||
#if MVK_IOS
|
#if MVK_IOS_OR_TVOS
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
#if MVK_MACOS
|
#if MVK_MACOS
|
||||||
@ -1993,7 +1993,7 @@ uint64_t MVKPhysicalDevice::getCurrentAllocatedSize() {
|
|||||||
if ( [_mtlDevice respondsToSelector: @selector(currentAllocatedSize)] ) {
|
if ( [_mtlDevice respondsToSelector: @selector(currentAllocatedSize)] ) {
|
||||||
return _mtlDevice.currentAllocatedSize;
|
return _mtlDevice.currentAllocatedSize;
|
||||||
}
|
}
|
||||||
#if MVK_IOS
|
#if MVK_IOS_OR_TVOS
|
||||||
// We can use the current memory used by this process as a reasonable approximation.
|
// We can use the current memory used by this process as a reasonable approximation.
|
||||||
return mvkGetUsedMemorySize();
|
return mvkGetUsedMemorySize();
|
||||||
#endif
|
#endif
|
||||||
|
@ -448,7 +448,7 @@ void mvkRemoveAllOccurances(C& container, T val) {
|
|||||||
/** Selects and returns one of the values, based on the platform OS. */
|
/** Selects and returns one of the values, based on the platform OS. */
|
||||||
template<typename T>
|
template<typename T>
|
||||||
const T& mvkSelectPlatformValue(const T& macOSVal, const T& iOSVal) {
|
const T& mvkSelectPlatformValue(const T& macOSVal, const T& iOSVal) {
|
||||||
#if MVK_IOS
|
#if MVK_IOS_OR_TVOS
|
||||||
return iOSVal;
|
return iOSVal;
|
||||||
#endif
|
#endif
|
||||||
#if MVK_MACOS
|
#if MVK_MACOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user