Fix issue with vkCmdBlitImage() from compressed textures.
This commit is contained in:
parent
1d118b3b11
commit
665dbfd632
@ -20,6 +20,7 @@ Released TBD
|
||||
|
||||
- Vulkan timestamp query pools use Metal GPU counters when available.
|
||||
- Fix issue where swapchain images were acquired out of order under heavy load.
|
||||
- Fix issue with `vkCmdBlitImage()` from compressed textures.
|
||||
- Fix incorrect translation of clear color values on Apple Silicon.
|
||||
- Fix swizzle of depth and stencil values into RGBA (`float4`) variable in shaders.
|
||||
- Disable `VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT` for
|
||||
|
@ -361,15 +361,16 @@ id<MTLFunction> MVKCommandResourceFactory::newClearFragFunction(MVKRPSKeyClearAt
|
||||
|
||||
NSString* MVKCommandResourceFactory::getMTLFormatTypeString(MTLPixelFormat mtlPixFmt) {
|
||||
switch (getPixelFormats()->getFormatType(mtlPixFmt)) {
|
||||
case kMVKFormatColorHalf: return @"half";
|
||||
case kMVKFormatColorFloat: return @"float";
|
||||
case kMVKFormatColorInt8:
|
||||
case kMVKFormatColorInt16: return @"short";
|
||||
case kMVKFormatColorUInt8:
|
||||
case kMVKFormatColorUInt16: return @"ushort";
|
||||
case kMVKFormatColorInt32: return @"int";
|
||||
case kMVKFormatColorUInt32: return @"uint";
|
||||
case kMVKFormatDepthStencil: return @"float";
|
||||
case kMVKFormatColorHalf: return @"half";
|
||||
case kMVKFormatColorFloat:
|
||||
case kMVKFormatDepthStencil:
|
||||
case kMVKFormatCompressed: return @"float";
|
||||
default: return @"unexpected_type";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user