1. Today our app crashed due to a typo in DescriptorSetSampler:
Code: Select all
--- a/OgreMain/include/OgreDescriptorSetSampler.h
+++ b/OgreMain/include/OgreDescriptorSetSampler.h
@@ -67,7 +67,7 @@ namespace Ogre
bool operator != ( const DescriptorSetSampler &other ) const
{
- const size_t thisNumSamplers = other.mSamplers.size();
+ const size_t thisNumSamplers = mSamplers.size();
if( thisNumSamplers != other.mSamplers.size() )
return true;
Code: Select all
[MTLDebugBlitCommandEncoder validate CopyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:]:502: failed assertion `sourceOffset (520) must be a multiple of 16 bytes.'
Code: Select all
bool StagingTextureBufferImpl::supportsFormat( uint32 width, uint32 height, uint32 depth,
uint32 slices, PixelFormatGpu pixelFormat ) const
{
//////////// added by a teammate of mine
if (pixelFormat >= PFG_ASTC_RGBA_UNORM_4X4_LDR && pixelFormat <= PFG_ASTC_RGBA_UNORM_12X12_sRGB) {
if (mFormatFamily < PFG_ASTC_RGBA_UNORM_4X4_LDR || mFormatFamily > PFG_ASTC_RGBA_UNORM_12X12_sRGB)
return false;
} else {
if (mFormatFamily >= PFG_ASTC_RGBA_UNORM_4X4_LDR && mFormatFamily <= PFG_ASTC_RGBA_UNORM_12X12_sRGB)
return false;
}
/////////////// added by a teammate of mine
const uint32 rowAlignment = 4u;
size_t requiredSize = PixelFormatGpuUtils::getSizeBytes( width, height, depth, slices,
pixelFormat, rowAlignment );
return requiredSize <= mSize;
}
- Rujia