A lightweight object that describes the attributes of a texture that can then used an allocator to create that texture. More...
#include <texture_descriptor.h>
Public Member Functions | |
| constexpr size_t | GetByteSizeOfBaseMipLevel () const |
| constexpr size_t | GetBytesPerRow () const |
| constexpr bool | SamplingOptionsAreValid () const |
| constexpr bool | operator== (const TextureDescriptor &other) const |
| constexpr bool | operator!= (const TextureDescriptor &other) const |
| constexpr bool | IsValid () const |
A lightweight object that describes the attributes of a texture that can then used an allocator to create that texture.
Definition at line 39 of file texture_descriptor.h.
|
inlineconstexpr |
Definition at line 50 of file texture_descriptor.h.
References impeller::TSize< T >::Area(), impeller::BytesPerPixelForPixelFormat(), format, IsValid(), and size.
Referenced by impeller::UploadGlyphTextureAtlas().
|
inlineconstexpr |
Definition at line 57 of file texture_descriptor.h.
References impeller::BytesPerPixelForPixelFormat(), format, IsValid(), size, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 84 of file texture_descriptor.h.
References format, impeller::TSize< T >::IsPositive(), impeller::kUnknown, mip_count, SamplingOptionsAreValid(), and size.
Referenced by GetByteSizeOfBaseMipLevel(), GetBytesPerRow(), impeller::TextureMTL::TextureMTL(), and impeller::ToMTLTextureDescriptor().
|
inlineconstexpr |
Definition at line 80 of file texture_descriptor.h.
|
inlineconstexpr |
Definition at line 69 of file texture_descriptor.h.
References compression_type, format, mip_count, sample_count, size, storage_mode, type, and usage.
|
inlineconstexpr |
Definition at line 64 of file texture_descriptor.h.
References impeller::IsMultisampleCapable(), sample_count, and type.
Referenced by IsValid().
| CompressionType impeller::TextureDescriptor::compression_type = CompressionType::kLossless |
Definition at line 48 of file texture_descriptor.h.
Referenced by impeller::RenderTarget::CreateOffscreenMSAA(), operator==(), impeller::testing::TEST(), impeller::TextureDescriptorToString(), and impeller::WrapTextureWithRenderTarget().
| PixelFormat impeller::TextureDescriptor::format = PixelFormat::kUnknown |
Definition at line 42 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::CreateGradientTexture(), impeller::RenderTarget::CreateOffscreen(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::testing::CreateTestYUVTextures(), impeller::CreateTextureForDecompressedImage(), GetByteSizeOfBaseMipLevel(), GetBytesPerRow(), impeller::scene::Skin::GetJointsTexture(), impeller::SwapchainImageVK::GetPixelFormat(), IsValid(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::TextureSourceVK::SetLayout(), impeller::RenderTarget::SetupStencilAttachment(), impeller::SwapchainImageVK::SwapchainImageVK(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), impeller::UploadGlyphTextureAtlas(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), impeller::WrapTextureMTL(), and impeller::WrapTextureWithRenderTarget().
| size_t impeller::TextureDescriptor::mip_count = 1u |
Definition at line 44 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::SamplerGLES::ConfigureBoundTexture(), impeller::CreateTextureForDecompressedImage(), impeller::scene::Skin::GetJointsTexture(), impeller::Texture::GetMipCount(), IsValid(), impeller::Texture::NeedsMipmapGeneration(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::TextureSourceVK::SetLayout(), impeller::SwapchainImageVK::SwapchainImageVK(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), and impeller::ToMTLTextureDescriptor().
| SampleCount impeller::TextureDescriptor::sample_count = SampleCount::kCount1 |
Definition at line 47 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::RenderTarget::CreateOffscreenMSAA(), operator==(), SamplingOptionsAreValid(), impeller::RenderTarget::SetupStencilAttachment(), impeller::testing::TEST(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
| ISize impeller::TextureDescriptor::size |
Definition at line 43 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::CreateGradientTexture(), impeller::RenderTarget::CreateOffscreen(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::testing::CreateTestYUVTextures(), impeller::Allocator::CreateTexture(), impeller::CreateTextureForDecompressedImage(), GetByteSizeOfBaseMipLevel(), GetBytesPerRow(), impeller::scene::Skin::GetJointsTexture(), impeller::SwapchainImageVK::GetSize(), IsValid(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::RenderTarget::SetupStencilAttachment(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::TextureMTL::TextureMTL(), impeller::ToMTLTextureDescriptor(), impeller::UploadGlyphTextureAtlas(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
| StorageMode impeller::TextureDescriptor::storage_mode = StorageMode::kDeviceTransient |
Definition at line 40 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::CreateGradientTexture(), impeller::RenderTarget::CreateOffscreen(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::testing::CreateTestYUVTextures(), impeller::RenderTargetCache::CreateTexture(), impeller::Playground::CreateTextureCubeForFixture(), impeller::CreateTextureForDecompressedImage(), impeller::scene::Skin::GetJointsTexture(), ImGui_ImplImpeller_Init(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::RenderTarget::SetupStencilAttachment(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::scene::UnpackTextureFromFlatbuffer(), impeller::UploadGlyphTextureAtlas(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
| TextureType impeller::TextureDescriptor::type = TextureType::kTexture2D |
Definition at line 41 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::SamplerGLES::ConfigureBoundTexture(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::TextureGLES::GenerateMipmap(), operator==(), SamplingOptionsAreValid(), impeller::TextureSourceVK::SetLayout(), impeller::RenderTarget::SetupStencilAttachment(), impeller::SwapchainImageVK::SwapchainImageVK(), impeller::testing::TEST(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
| TextureUsageMask impeller::TextureDescriptor::usage |
Definition at line 45 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::RenderTarget::CreateOffscreen(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::RenderTargetCache::CreateTexture(), impeller::GetTextureTypeFromDescriptor(), operator==(), impeller::RenderTarget::SetupStencilAttachment(), impeller::testing::TEST_P(), impeller::ToMTLTextureDescriptor(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().