| Flutter Impeller |

Namespaces | Macros | Functions
capabilities_unittests.cc File Reference
`#include "flutter/testing/testing.h"`
`#include "impeller/renderer/capabilities.h"`
`#include "gtest/gtest.h"`

Go to the source code of this file.

## Namespaces
| impeller
| impeller::testing

## Macros
#define | CAPABILITY_TEST(name, default_value)

## Functions
| impeller::testing::CAPABILITY_TEST (SupportsOffscreenMSAA, false)
| impeller::testing::CAPABILITY_TEST (SupportsSSBO, false)
| impeller::testing::CAPABILITY_TEST (SupportsTextureToTextureBlits, false)
| impeller::testing::CAPABILITY_TEST (SupportsFramebufferFetch, false)
| impeller::testing::CAPABILITY_TEST (SupportsCompute, false)
| impeller::testing::CAPABILITY_TEST (SupportsComputeSubgroups, false)
| impeller::testing::CAPABILITY_TEST (SupportsReadFromResolve, false)
| impeller::testing::CAPABILITY_TEST (SupportsDecalSamplerAddressMode, false)
| impeller::testing::CAPABILITY_TEST (SupportsDeviceTransientTextures, false)
| impeller::testing::CAPABILITY_TEST (SupportsTriangleFan, false)
| impeller::testing::CAPABILITY_TEST (SupportsExtendedRangeFormats, false)
| impeller::testing::CAPABILITY_TEST (NeedsPartitionedHostBuffer, false)
| impeller::testing::TEST (CapabilitiesTest, DefaultColorFormat)
| impeller::testing::TEST (CapabilitiesTest, DefaultStencilFormat)
| impeller::testing::TEST (CapabilitiesTest, DefaultDepthStencilFormat)
| impeller::testing::TEST (CapabilitiesTest, DefaultGlyphAtlasFormat)
| impeller::testing::TEST (CapabilitiesTest, MaxRenderPassAttachmentSize)
| impeller::testing::TEST (CapabilitiesTest, MinUniformAlignment)

## Macro Definition Documentation

## ◆ CAPABILITY_TEST

#define CAPABILITY_TEST | ( |  | name,
|  |  | default_value
| ) |  |

Value:
TEST(CapabilitiesTest, name) { \
auto defaults = CapabilitiesBuilder().Build(); \
ASSERT_EQ(defaults->name(), default_value); \
auto opposite = CapabilitiesBuilder().Set##name(!default_value).Build(); \
ASSERT_EQ(opposite->name(), !default_value); \
}
impeller::testing::TEST
TEST(CapabilitiesTest, MinUniformAlignment)
Definition: capabilities_unittests.cc:80

Definition at line 13 of file capabilities_unittests.cc.