GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
Texture.hpp File Reference

Go to the source code of this file.

Classes

class  grem::graphics::TextureAspects
 Set of aspects of a texture format. More...
struct  grem::graphics::TextureSubresource
 Subresource selection of a texture. More...
struct  grem::graphics::TextureRegion2D
 Two-dimensional region of a texture. More...
struct  grem::graphics::TextureRegion3D
 Three-dimensional region of a texture. More...
struct  grem::graphics::TextureSubresourceReference
 Reference to a subresource of a texture. More...
struct  grem::graphics::TextureSubresourceConstReference
 Read-only reference to a subresource of a texture. More...
struct  grem::graphics::TextureRegion2DReference
 Reference to a 2D region of a texture. More...
struct  grem::graphics::TextureRegion2DConstReference
 Read-only reference to a 2D region of a texture. More...
struct  grem::graphics::TextureRegion3DReference
 Reference to a 3D region of a texture. More...
struct  grem::graphics::TextureRegion3DConstReference
 Read-only reference to a 3D region of a texture. More...
struct  grem::graphics::RetainValues
 Specification that a texture should leave its values untouched rather than clearing them. More...
struct  grem::graphics::ClearValues
 Specification of values that a texture should be cleared to. More...
struct  grem::graphics::UndefinedClearValues
 Specification that a texture may be cleared to undefined values. More...
struct  grem::graphics::ClearMode
 Specification of how a texture should either be left untouched, be cleared to specific values or be cleared to undefined values before being used. More...
struct  grem::graphics::StoreIntermediateValues
 Specification that an intermediate render texture should store its intermediate values after being resolved. More...
struct  grem::graphics::DiscardIntermediateValues
 Specification that an intermediate render texture may have its intermediate values discarded after being resolved. More...
struct  grem::graphics::ResolveMode
 Specification of how an intermediate render texture should either store or discard its values after being resolved. More...
struct  grem::graphics::TextureImageUploadOptions
 Configuration options for a texture image upload. More...
struct  grem::graphics::TextureImageDownloadOptions
 Configuration options for a texture image download. More...
struct  grem::graphics::TextureSamplerOptions
 Configuration options for the sampler of a Texture. More...
class  grem::graphics::Texture
 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...

Namespaces

namespace  grem
namespace  grem::graphics

Enumerations

enum class  grem::graphics::TextureType : uint8_t {
  grem::graphics::EMPTY , grem::graphics::TEXTURE_2D , grem::graphics::TEXTURE_2D_ARRAY , grem::graphics::TEXTURE_CUBE ,
  grem::graphics::TEXTURE_CUBE_ARRAY , grem::graphics::RENDERBUFFER , grem::graphics::SWAPCHAIN
}
 Backend-specific implementation of Texture. More...
enum class  grem::graphics::TextureAspect : uint8_t { grem::graphics::COLOR = 1 << 0 , grem::graphics::DEPTH = 1 << 1 , grem::graphics::STENCIL = 1 << 2 }
 Aspect of a texture format. More...
enum class  grem::graphics::TextureFormat : uint8_t {
  grem::graphics::UNKNOWN = 0 , grem::graphics::R8_UNORM , grem::graphics::R16_FLOAT , grem::graphics::R32_FLOAT ,
  grem::graphics::R8G8_UNORM , grem::graphics::R16G16_FLOAT , grem::graphics::R32G32_FLOAT , grem::graphics::R8G8B8A8_UNORM ,
  grem::graphics::R8G8B8A8_SRGB , grem::graphics::B8G8R8A8_UNORM , grem::graphics::B8G8R8A8_SRGB , grem::graphics::R16G16B16A16_FLOAT ,
  grem::graphics::R32G32B32A32_FLOAT , grem::graphics::D16_UNORM , grem::graphics::D32_FLOAT , grem::graphics::D24_UNORM_S8_UINT ,
  grem::graphics::D32_FLOAT_S8_UINT , grem::graphics::R5G6B5_UNORM_PACK16 , grem::graphics::A1R5G5B5_UNORM_PACK16 , grem::graphics::B10G11R11_UFLOAT_PACK32 ,
  grem::graphics::A2B10G10R10_UNORM_PACK32 , grem::graphics::ASTC_4x4_RGBA_UNORM_BLOCK , grem::graphics::ASTC_4x4_RGBA_SRGB_BLOCK , grem::graphics::BC1_RGB_UNORM_BLOCK ,
  grem::graphics::BC1_RGB_SRGB_BLOCK , grem::graphics::BC3_RGBA_UNORM_BLOCK , grem::graphics::BC3_RGBA_SRGB_BLOCK , grem::graphics::BC4_R_UNORM_BLOCK ,
  grem::graphics::BC5_RG_UNORM_BLOCK , grem::graphics::BC6H_RGB_UFLOAT_BLOCK , grem::graphics::BC6H_RGB_FLOAT_BLOCK , grem::graphics::BC7_RGBA_UNORM_BLOCK ,
  grem::graphics::BC7_RGBA_SRGB_BLOCK , grem::graphics::ETC2_R8G8B8_UNORM_BLOCK , grem::graphics::ETC2_R8G8B8_SRGB_BLOCK , grem::graphics::ETC2_R8G8B8A8_UNORM_BLOCK ,
  grem::graphics::ETC2_R8G8B8A8_SRGB_BLOCK , grem::graphics::EAC_R11_UNORM_BLOCK , grem::graphics::EAC_R11G11_UNORM_BLOCK , grem::graphics::PVRTC1_4BPP_RGBA_UNORM_BLOCK ,
  grem::graphics::PVRTC1_4BPP_RGBA_SRGB_BLOCK
}
 Description of the internal format of a Texture. More...
enum class  grem::graphics::TextureFilter : uint8_t { grem::graphics::NEAREST , grem::graphics::LINEAR }
 Filtering mode for the sampler of a Texture. More...
enum class  grem::graphics::TextureMipmapMode : uint8_t { grem::graphics::NONE , grem::graphics::NEAREST , grem::graphics::LINEAR }
 Mipmap mode for the sampler of a Texture. More...
enum class  grem::graphics::TextureWrappingMode : uint8_t { grem::graphics::REPEAT , grem::graphics::CLAMP_TO_EDGE , grem::graphics::MIRRORED_REPEAT }
 Wrapping mode of the sampler of a Texture. More...
enum class  grem::graphics::TextureDepthComparisonMode : uint8_t {
  grem::graphics::NEVER_PASS , grem::graphics::LESS , grem::graphics::LESS_OR_EQUAL , grem::graphics::GREATER ,
  grem::graphics::GREATER_OR_EQUAL , grem::graphics::EQUAL , grem::graphics::NOT_EQUAL , grem::graphics::ALWAYS_PASS
}
 Depth comparison mode for the sampler of a Texture. More...

Functions

constexpr TextureAspects grem::graphics::operator~ (TextureAspect a) noexcept
 Get the complement of a texture aspect.
constexpr TextureAspects grem::graphics::operator| (TextureAspect a, TextureAspect b) noexcept
 Get the union of two texture aspects.