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 37 of file texture_descriptor.h.
|
inlineconstexpr |
Definition at line 47 of file texture_descriptor.h.
References impeller::TSize< T >::Area(), impeller::BytesPerPixelForPixelFormat(), format, IsValid(), and size.
Referenced by impeller::UploadGlyphTextureAtlas().
|
inlineconstexpr |
Definition at line 54 of file texture_descriptor.h.
References impeller::BytesPerPixelForPixelFormat(), format, IsValid(), size, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 81 of file texture_descriptor.h.
References format, impeller::TSize< T >::IsEmpty(), impeller::kUnknown, mip_count, SamplingOptionsAreValid(), and size.
Referenced by GetByteSizeOfBaseMipLevel(), GetBytesPerRow(), impeller::TextureMTL::TextureMTL(), and impeller::ToMTLTextureDescriptor().
|
inlineconstexpr |
Definition at line 77 of file texture_descriptor.h.
|
inlineconstexpr |
Definition at line 66 of file texture_descriptor.h.
References compression_type, format, mip_count, sample_count, size, storage_mode, type, and usage.
|
inlineconstexpr |
Definition at line 61 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 45 of file texture_descriptor.h.
Referenced by impeller::RenderTargetAllocator::CreateOffscreenMSAA(), operator==(), impeller::testing::TEST(), impeller::TextureDescriptorToString(), impeller::ToTextureDescriptor(), and impeller::WrapTextureWithRenderTarget().
PixelFormat impeller::TextureDescriptor::format = PixelFormat::kUnknown |
Definition at line 40 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::CreateGradientTexture(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::testing::CreateTestYUVTextures(), GetByteSizeOfBaseMipLevel(), GetBytesPerRow(), impeller::scene::Skin::GetJointsTexture(), impeller::KHRSwapchainImageVK::GetPixelFormat(), impeller::GetTextureTypeFromDescriptor(), IsValid(), impeller::KHRSwapchainImageVK::KHRSwapchainImageVK(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::TextureSourceVK::SetLayout(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), impeller::ToTextureDescriptor(), impeller::UploadGlyphTextureAtlas(), impeller::SurfaceGLES::WrapFBO(), impeller::KHRSurfaceVK::WrapSwapchainImage(), impeller::WrapTextureMTL(), and impeller::WrapTextureWithRenderTarget().
size_t impeller::TextureDescriptor::mip_count = 1u |
Definition at line 42 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::SamplerGLES::ConfigureBoundTexture(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::Allocator::CreateTexture(), impeller::scene::Skin::GetJointsTexture(), impeller::Texture::GetMipCount(), IsValid(), impeller::KHRSwapchainImageVK::KHRSwapchainImageVK(), impeller::Texture::NeedsMipmapGeneration(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::TextureSourceVK::SetLayout(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), and impeller::ToTextureDescriptor().
SampleCount impeller::TextureDescriptor::sample_count = SampleCount::kCount1 |
Definition at line 44 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::GetTextureTypeFromDescriptor(), operator==(), SamplingOptionsAreValid(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), impeller::ToTextureDescriptor(), impeller::SurfaceGLES::WrapFBO(), impeller::KHRSurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
ISize impeller::TextureDescriptor::size |
Definition at line 41 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::CreateGradientTexture(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::testing::CreateTestYUVTextures(), impeller::Allocator::CreateTexture(), GetByteSizeOfBaseMipLevel(), GetBytesPerRow(), impeller::scene::Skin::GetJointsTexture(), impeller::KHRSwapchainImageVK::GetSize(), impeller::TextureVK::GetSize(), IsValid(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::TextureMTL::TextureMTL(), impeller::ToMTLTextureDescriptor(), impeller::ToTextureDescriptor(), impeller::UploadGlyphTextureAtlas(), impeller::SurfaceGLES::WrapFBO(), impeller::KHRSurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
StorageMode impeller::TextureDescriptor::storage_mode = StorageMode::kDeviceTransient |
Definition at line 38 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::CreateGradientTexture(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::testing::CreateTestYUVTextures(), impeller::Playground::CreateTextureCubeForFixture(), impeller::CreateTextureForDecompressedImage(), impeller::scene::Skin::GetJointsTexture(), ImGui_ImplImpeller_Init(), operator==(), impeller::scene::SceneContext::SceneContext(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::ToTextureDescriptor(), impeller::scene::UnpackTextureFromFlatbuffer(), impeller::UploadGlyphTextureAtlas(), impeller::SurfaceGLES::WrapFBO(), impeller::KHRSurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
TextureType impeller::TextureDescriptor::type = TextureType::kTexture2D |
Definition at line 39 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::SamplerGLES::ConfigureBoundTexture(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::TextureGLES::GenerateMipmap(), impeller::KHRSwapchainImageVK::KHRSwapchainImageVK(), operator==(), SamplingOptionsAreValid(), impeller::TextureSourceVK::SetLayout(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::TextureDescriptorToString(), impeller::ToMTLTextureDescriptor(), impeller::ToTextureDescriptor(), impeller::SurfaceGLES::WrapFBO(), impeller::KHRSurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
TextureUsageMask impeller::TextureDescriptor::usage = TextureUsage::kShaderRead |
Definition at line 43 of file texture_descriptor.h.
Referenced by impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::GetTextureTypeFromDescriptor(), operator==(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::testing::TEST_P(), impeller::ToMTLTextureDescriptor(), impeller::SurfaceGLES::WrapFBO(), impeller::KHRSurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().