MVKPixelFormats: Only set MTLTextureUsageShaderAtomic for supported pixel format.
This commit is contained in:
parent
69446d122d
commit
e388a0e3af
@ -722,7 +722,7 @@ MTLTextureUsage MVKPixelFormats::getMTLTextureUsage(VkImageUsageFlags vkImageUsa
|
||||
}
|
||||
|
||||
#if MVK_XCODE_15
|
||||
if (supportAtomics) {
|
||||
if (supportAtomics && (mtlFormat == MTLPixelFormatR32Uint || mtlFormat == MTLPixelFormatR32Sint || mtlFormat == MTLPixelFormatRG32Uint)) {
|
||||
mvkEnableFlags(mtlUsage, MTLTextureUsageShaderAtomic);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user