virtual bool IsDecodeOnlyImageCompatible(const ImageCreateArgs& args);
IsDecodeOnlyImageCompatible determines if Decode-only image is compatible with the ImageCreateArgs argument set. This method is intended for use by CreateCompatibleImage implementation. If the method returns true, MemoryBufferImage may be created. If returning false, base class CreateCompatibleImage is called, to create TextureImage/RawImage instead.
An Image need not be kept in memory if:
1. Texture manager supports NoDataLoss initialization and matches map flags, since an init-only texture will be created.
2. If map flags are requested, RawImage will be created.
Parameters |
Description |
const ImageCreateArgs& args |
Pointer to ImageCreateArgs for the image argument set. |
A Boolean value of true creates a MemoryBufferImage and a value of false creates TextureImage/RawImage.