| 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 (SupportsBufferToTextureBlits, 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 (SupportsReadFromOnscreenTexture, false)
| impeller::testing::CAPABILITY_TEST (SupportsReadFromResolve, false)
| impeller::testing::CAPABILITY_TEST (SupportsDecalSamplerAddressMode, false)
| impeller::testing::CAPABILITY_TEST (SupportsDeviceTransientTextures, false)
| impeller::testing::TEST (CapabilitiesTest, DefaultColorFormat)
| impeller::testing::TEST (CapabilitiesTest, DefaultStencilFormat)
| impeller::testing::TEST (CapabilitiesTest, DefaultDepthStencilFormat)

## 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); \
}

Definition at line 13 of file capabilities_unittests.cc.

impeller::testing::TEST
TEST(CapabilitiesTest, DefaultDepthStencilFormat)
Definition: capabilities_unittests.cc:51