#include <array>
#include "gmock/gmock.h"
#include "src/tint/lang/core/type/depth_multisampled_texture.h"
#include "src/tint/lang/core/type/depth_texture.h"
#include "src/tint/lang/core/type/multisampled_texture.h"
#include "src/tint/lang/core/type/sampled_texture.h"
#include "src/tint/lang/core/type/sampler.h"
#include "src/tint/lang/core/type/storage_texture.h"
#include "src/tint/lang/core/type/texture_dimension.h"
#include "src/tint/lang/msl/writer/ast_printer/helper_test.h"
#include "src/tint/utils/text/string_stream.h"
namespace tint::msl::writer {
namespace {
HasSubstr;
usingnamespacetint::core::fluent_types;
usingnamespacetint::core::number_suffixes;
void FormatMSLField(StringStream& out,
const char* addr,
const char* type,
size_t array_count,
const char* name) { … }
#define CHECK_TYPE_SIZE_AND_ALIGN(TYPE, SIZE, ALIGN) …
#define DECLARE_TYPE(NAME, SIZE, ALIGN) …
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
DECLARE_TYPE(…);
uint;
MslASTPrinterTest;
TEST_F(MslASTPrinterTest, EmitType_Array) { … }
TEST_F(MslASTPrinterTest, EmitType_ArrayOfArray) { … }
TEST_F(MslASTPrinterTest, EmitType_ArrayOfArrayOfArray) { … }
TEST_F(MslASTPrinterTest, EmitType_Array_WithoutName) { … }
TEST_F(MslASTPrinterTest, EmitType_RuntimeArray) { … }
TEST_F(MslASTPrinterTest, EmitType_Bool) { … }
TEST_F(MslASTPrinterTest, EmitType_F32) { … }
TEST_F(MslASTPrinterTest, EmitType_F16) { … }
TEST_F(MslASTPrinterTest, EmitType_I32) { … }
TEST_F(MslASTPrinterTest, EmitType_Matrix_F32) { … }
TEST_F(MslASTPrinterTest, EmitType_Matrix_F16) { … }
TEST_F(MslASTPrinterTest, EmitType_Pointer) { … }
TEST_F(MslASTPrinterTest, EmitType_Struct) { … }
TEST_F(MslASTPrinterTest, EmitType_StructDecl) { … }
TEST_F(MslASTPrinterTest, EmitType_Struct_Layout_NonComposites) { … }
TEST_F(MslASTPrinterTest, EmitType_Struct_Layout_Structures) { … }
TEST_F(MslASTPrinterTest, EmitType_Struct_Layout_ArrayDefaultStride) { … }
TEST_F(MslASTPrinterTest, EmitType_Struct_Layout_ArrayVec3DefaultStride) { … }
TEST_F(MslASTPrinterTest, AttemptTintPadSymbolCollision) { … }
TEST_F(MslASTPrinterTest, EmitType_Struct_WithAttribute) { … }
TEST_F(MslASTPrinterTest, EmitType_U32) { … }
TEST_F(MslASTPrinterTest, EmitType_Vector) { … }
TEST_F(MslASTPrinterTest, EmitType_Void) { … }
TEST_F(MslASTPrinterTest, EmitType_Sampler) { … }
TEST_F(MslASTPrinterTest, EmitType_SamplerComparison) { … }
struct MslDepthTextureData { … };
inline std::ostream& operator<<(std::ostream& out, MslDepthTextureData data) { … }
MslDepthTexturesTest;
TEST_P(MslDepthTexturesTest, Emit) { … }
INSTANTIATE_TEST_SUITE_P(…);
MslDepthMultisampledTexturesTest;
TEST_F(MslDepthMultisampledTexturesTest, Emit) { … }
struct MslTextureData { … };
inline std::ostream& operator<<(std::ostream& out, MslTextureData data) { … }
MslSampledtexturesTest;
TEST_P(MslSampledtexturesTest, Emit) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(MslASTPrinterTest, Emit_TypeMultisampledTexture) { … }
struct MslStorageTextureData { … };
inline std::ostream& operator<<(std::ostream& out, MslStorageTextureData data) { … }
MslStorageTexturesTest;
TEST_P(MslStorageTexturesTest, Emit) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}