Flutter Engine
 
Loading...
Searching...
No Matches
impeller::testing::MockCapabilities Class Reference

#include <mocks.h>

Inheritance diagram for impeller::testing::MockCapabilities:
impeller::Capabilities

Public Member Functions

 MOCK_METHOD (bool, SupportsOffscreenMSAA,(),(const, override))
 
 MOCK_METHOD (bool, SupportsImplicitResolvingMSAA,(),(const, override))
 
 MOCK_METHOD (bool, SupportsSSBO,(),(const, override))
 
 MOCK_METHOD (bool, SupportsTextureToTextureBlits,(),(const, override))
 
 MOCK_METHOD (bool, SupportsFramebufferFetch,(),(const, override))
 
 MOCK_METHOD (bool, SupportsCompute,(),(const, override))
 
 MOCK_METHOD (bool, SupportsComputeSubgroups,(),(const, override))
 
 MOCK_METHOD (bool, SupportsReadFromResolve,(),(const, override))
 
 MOCK_METHOD (bool, SupportsDecalSamplerAddressMode,(),(const, override))
 
 MOCK_METHOD (bool, SupportsDeviceTransientTextures,(),(const, override))
 
 MOCK_METHOD (bool, SupportsTriangleFan,(),(const override))
 
 MOCK_METHOD (bool, SupportsPrimitiveRestart,(),(const override))
 
 MOCK_METHOD (bool, SupportsExtendedRangeFormats,(),(const override))
 
 MOCK_METHOD (PixelFormat, GetDefaultColorFormat,(),(const, override))
 
 MOCK_METHOD (PixelFormat, GetDefaultStencilFormat,(),(const, override))
 
 MOCK_METHOD (PixelFormat, GetDefaultDepthStencilFormat,(),(const, override))
 
 MOCK_METHOD (PixelFormat, GetDefaultGlyphAtlasFormat,(),(const, override))
 
 MOCK_METHOD (ISize, GetMaximumRenderPassAttachmentSize,(),(const override))
 
 MOCK_METHOD (size_t, GetMinimumUniformAlignment,(),(const override))
 
 MOCK_METHOD (bool, NeedsPartitionedHostBuffer,(),(const, override))
 
- Public Member Functions inherited from impeller::Capabilities
virtual ~Capabilities ()
 
virtual bool SupportsOffscreenMSAA () const =0
 Whether the context backend supports attaching offscreen MSAA color/stencil textures.
 
virtual bool SupportsImplicitResolvingMSAA () const =0
 Whether the context backend supports multisampled rendering to the on-screen surface without requiring an explicit resolve of the MSAA color attachment.
 
virtual bool SupportsSSBO () const =0
 Whether the context backend supports binding Shader Storage Buffer Objects (SSBOs) to pipelines.
 
virtual bool SupportsTextureToTextureBlits () const =0
 Whether the context backend supports blitting from one texture region to another texture region (via the relevant BlitPass::AddCopy overloads).
 
virtual bool SupportsFramebufferFetch () const =0
 Whether the context backend is able to support pipelines with shaders that read from the framebuffer (i.e. pixels that have been written by previous draw calls in the current render pass).
 
virtual bool SupportsCompute () const =0
 Whether the context backend supports ComputePass.
 
virtual bool SupportsComputeSubgroups () const =0
 Whether the context backend supports configuring ComputePass command subgroups.
 
virtual bool SupportsReadFromResolve () const =0
 Whether the context backend supports binding the current RenderPass attachments. This is supported if the backend can guarantee that attachment textures will not be mutated until the render pass has fully completed.
 
virtual bool SupportsDecalSamplerAddressMode () const =0
 Whether the context backend supports SamplerAddressMode::Decal.
 
virtual bool SupportsDeviceTransientTextures () const =0
 Whether the context backend supports allocating StorageMode::kDeviceTransient (aka "memoryless") textures, which are temporary textures kept in tile memory for the duration of the RenderPass it's attached to.
 
virtual bool SupportsTriangleFan () const =0
 Whether the primitive type TriangleFan is supported by the backend.
 
virtual bool SupportsPrimitiveRestart () const =0
 Whether primitive restart is supported.
 
virtual PixelFormat GetDefaultColorFormat () const =0
 Returns a supported PixelFormat for textures that store 4-channel colors (red/green/blue/alpha).
 
virtual PixelFormat GetDefaultStencilFormat () const =0
 Returns a supported PixelFormat for textures that store stencil information. May include a depth channel if a stencil-only format is not available.
 
virtual PixelFormat GetDefaultDepthStencilFormat () const =0
 Returns a supported PixelFormat for textures that store both a stencil and depth component. This will never return a depth-only or stencil-only texture. Returns PixelFormat::kUnknown if no suitable depth+stencil format was found.
 
virtual PixelFormat GetDefaultGlyphAtlasFormat () const =0
 Returns the default pixel format for the alpha bitmap glyph atlas.
 
virtual ISize GetMaximumRenderPassAttachmentSize () const =0
 Return the maximum size of a render pass attachment.
 
virtual bool SupportsExtendedRangeFormats () const =0
 Whether the XR formats are supported on this device.
 
virtual size_t GetMinimumUniformAlignment () const =0
 The minimum alignment of uniform value offsets in bytes.
 
virtual size_t GetMinimumStorageBufferAlignment () const
 The minimum alignment of storage buffer value offsets in bytes.
 
virtual bool NeedsPartitionedHostBuffer () const =0
 Whether the host buffer should use separate device buffers for indexes from other data.
 

Additional Inherited Members

- Protected Member Functions inherited from impeller::Capabilities
 Capabilities ()
 
 Capabilities (const Capabilities &)=delete
 
Capabilitiesoperator= (const Capabilities &)=delete
 

Detailed Description

Definition at line 214 of file mocks.h.

Member Function Documentation

◆ MOCK_METHOD() [1/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
NeedsPartitionedHostBuffer  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsCompute  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsComputeSubgroups  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [4/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsDecalSamplerAddressMode  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [5/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsDeviceTransientTextures  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [6/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsExtendedRangeFormats  ,
()  ,
(const override)   
)

◆ MOCK_METHOD() [7/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsFramebufferFetch  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [8/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsImplicitResolvingMSAA  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [9/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsOffscreenMSAA  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [10/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsPrimitiveRestart  ,
()  ,
(const override)   
)

◆ MOCK_METHOD() [11/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsReadFromResolve  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [12/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsSSBO  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [13/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsTextureToTextureBlits  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [14/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( bool  ,
SupportsTriangleFan  ,
()  ,
(const override)   
)

◆ MOCK_METHOD() [15/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( ISize  ,
GetMaximumRenderPassAttachmentSize  ,
()  ,
(const override)   
)

◆ MOCK_METHOD() [16/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( PixelFormat  ,
GetDefaultColorFormat  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [17/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( PixelFormat  ,
GetDefaultDepthStencilFormat  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [18/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( PixelFormat  ,
GetDefaultGlyphAtlasFormat  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [19/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( PixelFormat  ,
GetDefaultStencilFormat  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [20/20]

impeller::testing::MockCapabilities::MOCK_METHOD ( size_t  ,
GetMinimumUniformAlignment  ,
()  ,
(const override)   
)

The documentation for this class was generated from the following file: