|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Storage for multidimensional data, such as 2D images, on the GPU, combined with a sampler configuration that defines how to sample the stored data in shaders while rendering. More...
#include <GREM/graphics/Texture.hpp>

Public Member Functions | |
| Texture () noexcept=default | |
| Construct an empty texture without a value. | |
| Texture (Device &device, const resource::ImageView &image, const TextureImageUploadOptions &options={}, Optional< TextureSamplerOptions > samplerOptions=TextureSamplerOptions{}) | |
| Construct a new texture and allocate GPU memory for storing a copy of an image. | |
| operator bool () const noexcept | |
| Check if the texture has a value. | |
| void | pasteImage (Extent3D imageSize, const void *pixels, Offset3D destinationOffset, Region3D sourceRegion) |
| Copy all or part of an array of layers of 2D image data into the texture at a specific position. | |
| void | pasteImage (Extent3D imageSize, const void *pixels, Offset3D destinationOffset={.x=0,.y=0,.z=0}, Offset3D sourceOffset={.x=0,.y=0,.z=0}) |
| Copy all of an array of layers of 2D image data into the texture at a specific position. | |
| void | pasteTexture (const Texture &texture, Offset3D destinationOffset, Region3D sourceRegion) |
| Copy all or part of the image data of another 2D or 2D array texture into the texture at a specific position. | |
| void | pasteTexture (const Texture &texture, Offset3D destinationOffset={.x=0,.y=0,.z=0}, Offset3D sourceOffset={.x=0,.y=0,.z=0}) |
| Copy all of the image data of another 2D or 2D array texture into the texture at a specific position. | |
| void | fill (const ClearValues &values={}) |
| Fill all allocated texture data with specific values. | |
| void | fill (TextureSubresource subresource, const ClearValues &values={}) |
| Fill a subresource of the texture with specific values. | |
| void | generateMipmap () |
| Generate a mipmap, with the maximum possible number of mip levels, for the texture based on the highest quality mip level. | |
| Texture | copy () const |
| Create a new texture object, allocate GPU memory and copy the image data of this texture onto it. | |
| Texture | copyWithSamplerOptions (Optional< TextureSamplerOptions > newSamplerOptions) const |
| Create a new texture object with new sampler options, allocate GPU memory and copy the image data of this texture onto it. | |
| resource::Image | downloadImage (const TextureImageDownloadOptions &downloadOptions={}) const |
| Download a copy of all or part of the image stored in the texture. | |
| operator TextureSubresourceReference () noexcept | |
| Get a reference to the first subresource of the texture. | |
| operator TextureSubresourceConstReference () const noexcept | |
| Get a read-only reference to the first subresource of the texture. | |
| TextureSubresourceReference | getSubresource (TextureSubresource subresource) noexcept |
| Get a reference to a subresource of the texture. | |
| TextureSubresourceConstReference | getSubresource (TextureSubresource subresource) const noexcept |
| Get a read-only reference to a subresource of the texture. | |
| operator TextureRegion2DReference () noexcept | |
| Get a reference to the first 2D layer region of the texture. | |
| operator TextureRegion2DConstReference () const noexcept | |
| Get a read-only reference to the first 2D layer region of the texture. | |
| TextureRegion2DReference | getRegion2D (TextureRegion2D region) noexcept |
| Get a reference to a 2D region of the texture. | |
| TextureRegion2DConstReference | getRegion2D (TextureRegion2D region) const noexcept |
| Get a read-only reference to a 2D region of the texture. | |
| TextureRegion3DReference | getRegion3D (TextureRegion3D region) noexcept |
| Get a reference to a 3D region of the texture. | |
| TextureRegion3DConstReference | getRegion3D (TextureRegion3D region) const noexcept |
| Get a read-only reference to a 3D region of the texture. | |
| TextureType | getType () const noexcept |
| Get the type of the texture. | |
| TextureFormat | getInternalFormat () const noexcept |
| Get the internal texture format of this texture. | |
| Extent2D | getSize2D () const noexcept |
| Get the size, in texels, of the 2D image data stored in this texture. | |
| Extent3D | getSize3D () const noexcept |
| Get the size, in texels, and the depth, in layers, of the 3D image data stored in this texture. | |
| uint32_t | getWidth () const noexcept |
| Get the width, in texels, of the image data stored in this texture. | |
| uint32_t | getHeight () const noexcept |
| Get the height, in texels, of the image data stored in this texture. | |
| uint32_t | getDepth () const noexcept |
| Get the depth, in layers, of the image data stored in this texture. | |
| uint32_t | getMipLevelCount () const noexcept |
| Get the number of mip levels of the texture. | |
| uint32_t | getMaxMultisampleCount () const noexcept |
| Get the maximum multisample count of the texture. | |
| Optional< TextureSamplerOptions > | getSamplerOptions () const noexcept |
| Get the configuration options of this texture's associated sampler. | |
| SharedPointer< TextureImplementation > | lock () const noexcept |
| Get a lock for the underlying resource implementation. | |
| TextureImplementation * | get () noexcept |
| Get a pointer to the underlying resource implementation. | |
| const TextureImplementation * | get () const noexcept |
| Get a pointer to the underlying resource implementation. | |
Static Public Member Functions | |
| static constexpr TextureAspects | getFormatAspects (TextureFormat internalFormat) |
| Get the set of texture aspects of an internal texture format. | |
| static constexpr resource::ImageType | getImageType (TextureType type) |
| Get the image type corresponding to a texture type. | |
| static constexpr resource::ImageFormat | getImageFormat (TextureFormat internalFormat) |
| Get the image format corresponding to an internal texture format. | |
| static constexpr TextureType | getType (resource::ImageType type) noexcept |
| Get the texture type corresponding to an image type. | |
| static constexpr bool | hasInternalSRGBFormat (resource::ImageFormat format) noexcept |
| Check if an image format has a corresponding internal texture format that uses the sRGB transfer function. | |
| static constexpr Color::TransferFunction | getTransferFunction (TextureFormat internalFormat) noexcept |
| Get the transfer function of an internal texture format. | |
| static constexpr TextureFormat | getInternalFormat (resource::ImageFormat format, Color::TransferFunction transferFunction) noexcept |
| Get the internal texture format corresponding to an image format. | |
| static constexpr TextureFormat | getRawFormat (TextureFormat internalFormat) noexcept |
| Get the raw format corresponding to a specific internal texture format. | |
| static constexpr TextureFormat | getUncompressedFormat (TextureFormat internalFormat) noexcept |
| Get the uncompressed format corresponding to a specific internal texture format. | |
| static constexpr bool | isCompatibleFormat (TextureFormat internalFormat, resource::ImageFormat format) noexcept |
| Check if a specific image format is directly compatible with an internal texture format. | |
| static constexpr bool | isRGBAColorFormat (TextureFormat internalFormat) noexcept |
| Check if a specific internal texture format is an RGBA color format with an alpha channel. | |
| static constexpr bool | isRawFormat (TextureFormat internalFormat) noexcept |
| Check if a specific internal texture format is a raw format. | |
| static constexpr bool | isPackedFormat (TextureFormat internalFormat) noexcept |
| Check if a specific internal texture format is a bit-packed format. | |
| static constexpr bool | isCompressedFormat (TextureFormat internalFormat) noexcept |
| Check if a specific internal texture format is a compressed format. | |
| static constexpr bool | isFramebufferCompatibleFormat (TextureFormat internalFormat) noexcept |
| Check if a specific internal texture format is framebuffer-compatible. | |
| static Texture | create (Device &device, TextureType type, TextureFormat internalFormat, Extent3D size, uint32_t mipLevelCount, const void *pixels, Optional< TextureSamplerOptions > samplerOptions=TextureSamplerOptions{}) |
| Create a new texture object and allocate GPU memory for storing image data. | |
| static Texture | create (Device &device, TextureType type, TextureFormat internalFormat, Extent3D size, uint32_t mipLevelCount, const UndefinedClearValues &values, Optional< TextureSamplerOptions > samplerOptions=TextureSamplerOptions{}) |
| Create a new texture object and allocate uninitialized GPU memory for storing image data. | |
| static Texture | create (Device &device, TextureType type, TextureFormat internalFormat, Extent3D size, uint32_t mipLevelCount, const ClearValues &values, Optional< TextureSamplerOptions > samplerOptions=TextureSamplerOptions{}) |
| Create a new texture object and allocate GPU memory for storing image data, initialized to specific values. | |
| static Texture | createRenderbuffer (Device &device, TextureFormat internalFormat, Extent2D size, uint32_t maxMultisampleCount, const UndefinedClearValues &values) |
| Create a new unsampled texture object and allocate uninitialized GPU memory for storing potentially multisampled 2D image data. | |
| static Texture | createRenderbuffer (Device &device, TextureFormat internalFormat, Extent2D size, uint32_t maxMultisampleCount, const ClearValues &values) |
| Create a new unsampled texture object and allocate GPU memory for storing potentially multisampled 2D image data, initialized to specific values. | |
Storage for multidimensional data, such as 2D images, on the GPU, combined with a sampler configuration that defines how to sample the stored data in shaders while rendering.
|
defaultnoexcept |
Construct an empty texture without a value.
| grem::graphics::Texture::Texture | ( | Device & | device, |
| const resource::ImageView & | image, | ||
| const TextureImageUploadOptions & | options = {}, | ||
| Optional< TextureSamplerOptions > | samplerOptions = TextureSamplerOptions{} ) |
Construct a new texture and allocate GPU memory for storing a copy of an image.
| device | device to create the texture for. Must outlive the texture. |
| image | non-owning read-only view over the image to copy into the new texture data storage. The allocated storage will be sized to fit the image. |
| options | image upload options, see TextureImageUploadOptions. |
| samplerOptions | sampler options, see TextureSamplerOptions. Set to an empty optional to create an unsampled texture. |
| graphics::Error | if resource creation failed, or on failure to choose an appropriate internal texture format for the given image. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
inlinestaticnodiscardconstexpr |
Get the set of texture aspects of an internal texture format.
| internalFormat | format to get the aspects of. |
| graphics::Error | if the format aspects cannot be determined. |
|
inlinestaticnodiscardconstexpr |
Get the image type corresponding to a texture type.
| type | texture type to get the image type of. |
| graphics::Error | if a corresponding image type cannot be determined. |
|
inlinestaticnodiscardconstexpr |
Get the image format corresponding to an internal texture format.
| internalFormat | internal texture format to get the image format of. |
| graphics::Error | if a corresponding image format cannot be determined. |
|
inlinestaticnodiscardconstexprnoexcept |
Get the texture type corresponding to an image type.
| type | image type to get the texture type of. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if an image format has a corresponding internal texture format that uses the sRGB transfer function.
| format | image format to check. |
|
inlinestaticnodiscardconstexprnoexcept |
Get the transfer function of an internal texture format.
| internalFormat | internal texture format to get the transfer function of. |
|
inlinestaticnodiscardconstexprnoexcept |
Get the internal texture format corresponding to an image format.
| format | image format to get the internal texture format of. |
| transferFunction | preferred transfer function to use. Only applies to image formats where the corresponding texture format has both sRGB and non-sRGB variants. |
|
inlinestaticnodiscardconstexprnoexcept |
Get the raw format corresponding to a specific internal texture format.
| internalFormat | internal texture format to get the raw internal texture format of. |
|
inlinestaticnodiscardconstexprnoexcept |
Get the uncompressed format corresponding to a specific internal texture format.
| internalFormat | internal texture format to get the uncompressed internal texture format of. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if a specific image format is directly compatible with an internal texture format.
| internalFormat | internal texture format to check. |
| format | image format to check. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if a specific internal texture format is an RGBA color format with an alpha channel.
| internalFormat | internal texture format to check. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if a specific internal texture format is a raw format.
| internalFormat | internal texture format to check. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if a specific internal texture format is a bit-packed format.
| internalFormat | internal texture format to check. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if a specific internal texture format is a compressed format.
| internalFormat | internal texture format to check. |
|
inlinestaticnodiscardconstexprnoexcept |
Check if a specific internal texture format is framebuffer-compatible.
| internalFormat | internal texture format to check. |
|
staticnodiscard |
Create a new texture object and allocate GPU memory for storing image data.
| device | device to create the texture for. Must outlive the texture. |
| type | type of texture object to create. |
| internalFormat | internal texture format of the new texture. Must not be TextureFormat::UNKNOWN. |
| size | size of the image data to allocate, in texels. Must fit in the maximum texture size specified in device.getSupportedFeatures() corresponding to the given texture type. |
| mipLevelCount | number of mip levels to allocate. |
| pixels | non-owning read-only pointer to the pixel data of the input image to copy into the new texture data storage, or nullptr to leave the data uninitialized. |
| samplerOptions | sampler options, see TextureSamplerOptions. Set to an empty optional to create an unsampled texture. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
inlinestaticnodiscard |
Create a new texture object and allocate uninitialized GPU memory for storing image data.
| device | device to create the texture for. Must outlive the texture. |
| type | type of texture object to create. |
| internalFormat | internal texture format of the new texture. Must not be TextureFormat::UNKNOWN. |
| size | size of the image data to allocate, in texels. Must fit in the maximum texture size specified in device.getSupportedFeatures() corresponding to the given texture type. |
| mipLevelCount | number of mip levels to allocate. |
| values | undefined clear value tag. |
| samplerOptions | sampler options, see TextureSamplerOptions. Set to an empty optional to create an unsampled texture. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
inlinestaticnodiscard |
Create a new texture object and allocate GPU memory for storing image data, initialized to specific values.
| device | device to create the texture for. Must outlive the texture. |
| type | type of texture object to create. |
| internalFormat | internal texture format of the new texture. Must not be TextureFormat::UNKNOWN. |
| size | size of the image data to allocate, in texels. Must fit in the maximum texture size specified in device.getSupportedFeatures() corresponding to the given texture type. |
| mipLevelCount | number of mip levels to allocate. |
| values | initial values to fill the texture with. |
| samplerOptions | sampler options, see TextureSamplerOptions. Set to an empty optional to create an unsampled texture. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
staticnodiscard |
Create a new unsampled texture object and allocate uninitialized GPU memory for storing potentially multisampled 2D image data.
| device | device to create the texture for. Must outlive the texture. |
| internalFormat | internal texture format of the new texture. Must not be TextureFormat::UNKNOWN. |
| size | size of the 2D image data to allocate, in texels. Must fit in the maximum 2D texture size specified in device.getSupportedFeatures(). |
| maxMultisampleCount | maximum number of samples to use for the texels. The actual sample count may be lower than requested due to implementation-specific limitations. Set to 0 or 1 to disable multisampling. |
| values | undefined clear value tag. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
inlinestaticnodiscard |
Create a new unsampled texture object and allocate GPU memory for storing potentially multisampled 2D image data, initialized to specific values.
| device | device to create the texture for. Must outlive the texture. |
| internalFormat | internal texture format of the new texture. Must not be TextureFormat::UNKNOWN. |
| size | size of the 2D image data to allocate, in texels. Must fit in the maximum 2D texture size specified in device.getSupportedFeatures(). |
| maxMultisampleCount | maximum number of samples to use for the texels. The actual sample count may be lower than requested due to implementation-specific limitations. Set to 0 or 1 to disable multisampling. |
| values | initial values to fill the texture with. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
inlineexplicitnoexcept |
Check if the texture has a value.
| void grem::graphics::Texture::pasteImage | ( | Extent3D | imageSize, |
| const void * | pixels, | ||
| Offset3D | destinationOffset, | ||
| Region3D | sourceRegion ) |
Copy all or part of an array of layers of 2D image data into the texture at a specific position.
| imageSize | full size of the input image, in pixels. |
| pixels | non-owning read-only pointer to the pixel data of the input image array to copy into the existing texture data storage. Must not be nullptr. |
| destinationOffset | offset, in texels, from the bottom left corner of the first layer of the destination texture to start pasting at, where the bottom left corner of the first layer of the pasted image region will begin. |
| sourceRegion | region, in texels, relative to the top left corner of the first layer of the source image, to copy. |
| graphics::Error | if resource creation failed or on failure to paste the given image data. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Copy all of an array of layers of 2D image data into the texture at a specific position.
| imageSize | full size of the input image to copy, in pixels. |
| pixels | non-owning read-only pointer to the pixel data of the input image array to copy into the existing texture data storage. Must not be nullptr. |
| destinationOffset | offset, in texels, from the bottom left corner of the first layer of the destination texture to start pasting at, where the bottom left corner of the first layer of the pasted image region will begin. |
| sourceOffset | offset, in texels, from the top left corner of the first layer of the source image to start copying from. |
| graphics::Error | if resource creation failed or on failure to paste the given image data. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Texture::pasteTexture | ( | const Texture & | texture, |
| Offset3D | destinationOffset, | ||
| Region3D | sourceRegion ) |
Copy all or part of the image data of another 2D or 2D array texture into the texture at a specific position.
| texture | other texture to copy into the existing texture data storage of this texture. Must be a 2D or 2D array texture. |
| destinationOffset | offset, in texels, from the bottom left corner of the first layer of the destination texture to start pasting at, where the bottom left corner of the first layer of the pasted image region will begin. |
| sourceRegion | region, in texels, relative to the bottom left corner of the first layer of the source texture, to copy. |
| graphics::Error | if resource creation failed or on failure to paste the given image data. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Copy all of the image data of another 2D or 2D array texture into the texture at a specific position.
| texture | other texture to copy into the existing texture data storage of this texture. Must be a 2D or 2D array texture. |
| destinationOffset | offset, in texels, from the bottom left corner of the first layer of the destination texture to start pasting at, where the bottom left corner of the first layer of the pasted image region will begin. |
| sourceOffset | offset, in texels, from the bottom left corner of the first layer of the source texture to start copying from. |
| graphics::Error | if resource creation failed or on failure to paste the given image data. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Texture::fill | ( | const ClearValues & | values = {} | ) |
Fill all allocated texture data with specific values.
| values | values to fill the texture with. |
| graphics::Error | if resource creation failed or on failure to fill the texture. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Texture::fill | ( | TextureSubresource | subresource, |
| const ClearValues & | values = {} ) |
Fill a subresource of the texture with specific values.
| subresource | texture subresource to fill. Must be a valid subresource of this texture. |
| values | values to fill the subresource with. |
| graphics::Error | if resource creation failed or on failure to fill the texture. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Texture::generateMipmap | ( | ) |
Generate a mipmap, with the maximum possible number of mip levels, for the texture based on the highest quality mip level.
| graphics::Error | if resource creation failed or on failure to regenerate the mipmap. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
nodiscard |
Create a new texture object, allocate GPU memory and copy the image data of this texture onto it.
| graphics::Error | if resource creation failed or on failure to copy the texture. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
nodiscard |
Create a new texture object with new sampler options, allocate GPU memory and copy the image data of this texture onto it.
| newSamplerOptions | sampler options of the new texture. |
| graphics::Error | if resource creation failed or on failure to copy the texture. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. Note: this pertains only to CPU memory allocations. Failure to allocate GPU memory for the texture data might not be reported directly. |
|
nodiscard |
Download a copy of all or part of the image stored in the texture.
| downloadOptions | texture download options, see TextureImageDownloadOptions. |
| graphics::Error | on failure to download the image data. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inlinenoexcept |
Get a reference to the first subresource of the texture.
|
inlinenoexcept |
Get a read-only reference to the first subresource of the texture.
|
inlinenodiscardnoexcept |
Get a reference to a subresource of the texture.
| subresource | subresource to get a reference to. Must be a valid subresource of this texture. |
|
inlinenodiscardnoexcept |
Get a read-only reference to a subresource of the texture.
| subresource | subresource to get a reference to. Must be a valid subresource of this texture. |
|
inlinenoexcept |
Get a reference to the first 2D layer region of the texture.
|
inlinenoexcept |
Get a read-only reference to the first 2D layer region of the texture.
|
inlinenodiscardnoexcept |
Get a reference to a 2D region of the texture.
| region | region to get a reference to. Must be a valid region of this texture. |
|
inlinenodiscardnoexcept |
Get a read-only reference to a 2D region of the texture.
| region | region to get a reference to. Must be a valid region of this texture. |
|
inlinenodiscardnoexcept |
Get a reference to a 3D region of the texture.
| region | region to get a reference to. Must be a valid region of this texture. |
|
inlinenodiscardnoexcept |
Get a read-only reference to a 3D region of the texture.
| region | region to get a reference to. Must be a valid region of this texture. |
|
nodiscardnoexcept |
Get the type of the texture.
|
nodiscardnoexcept |
Get the internal texture format of this texture.
|
inlinenodiscardnoexcept |
Get the size, in texels, of the 2D image data stored in this texture.
|
nodiscardnoexcept |
Get the size, in texels, and the depth, in layers, of the 3D image data stored in this texture.
|
inlinenodiscardnoexcept |
Get the width, in texels, of the image data stored in this texture.
|
inlinenodiscardnoexcept |
Get the height, in texels, of the image data stored in this texture.
|
inlinenodiscardnoexcept |
Get the depth, in layers, of the image data stored in this texture.
|
nodiscardnoexcept |
Get the number of mip levels of the texture.
|
nodiscardnoexcept |
Get the maximum multisample count of the texture.
|
nodiscardnoexcept |
Get the configuration options of this texture's associated sampler.
|
inlinenodiscardnoexcept |
Get a lock for the underlying resource implementation.
|
inlinenodiscardnoexcept |
Get a pointer to the underlying resource implementation.
|
inlinenodiscardnoexcept |
Get a pointer to the underlying resource implementation.