#include <CeresEngine/RenderAPI/GPUImage.hpp>
◆ GPUImage() [1/2]
Deleted copy constructor.
◆ GPUImage() [2/2]
| CeresEngine::GPUImage::GPUImage |
( |
GPUImage && |
| ) |
|
|
delete |
Deleted move constructor.
◆ bufferSize()
Returns the required buffer size (in bytes) of a image with the specified hardware format and number of texels.
- Parameters
-
| format | Specifies the image format. |
| numTexels | Specifies the number of image elements (texels). For the DXT compressed image formats, this must be a multiple of 16, since these formats compress the image in 4x4 texel blocks. |
- Returns
- The required buffer size (in bytes), or zero if the input is invalid.
◆ createView()
◆ isArray()
Returns true if the specified image type is an array image.
- Returns
- True if 'type' is . either
ImageType::Image1DArray, ImageType::Image2DArray, ImageType::ImageCubeArray, or ImageType::Image2DMSArray.
◆ isCube()
Returns true if the specified image type is a cube image.
- Returns
- True if 'type' is either
ImageType::ImageCube or ImageType::ImageCubeArray.
◆ isMipMapped()
Returns true if the specified image descriptor describes a image with MIP-mapping enabled.
- Returns
- True if the image type is not a multi-sampled image and the number of MIP-map levels in the descriptor is either zero or greater than one.
◆ isMultiSample()
Returns true if the specified image type is a multi-sample image.
- Returns
- True if 'type' is either
ImageType::Image2DMS, or ImageType::Image2DMSArray.
◆ numMipLevels() [1/2]
Returns the number of MIP-map levels for the specified image descriptor.
- Parameters
-
| imageDesc | Specifies the descriptor whose parameters are used to determine the number of MIP-map levels. |
◆ numMipLevels() [2/2]
Returns the number of MIP-map levels for a image with the specified size.
- Parameters
-
| width | Specifies the image width. |
| height | specifies the image height or number of layers for 1D array images. By default 1 (if 1D images are used). |
| depth | Specifies the image depth or number of layers for 2D array images. By default 1 (if 1D or 2D images are used). |
- Returns
- 1 + floor(log2(max{ width, height, depth })).
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
- Returns
- The image size (in texels) of the specified image descriptor, or zero if the image type is invalid.
◆ TDeviceObject() [1/3]
◆ TDeviceObject() [2/3]
◆ TDeviceObject() [3/3]
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/RenderAPI/GPUImage.hpp