#include "gmock/gmock.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/hlsl/writer/ast_printer/helper_test.h"
#include "src/tint/lang/wgsl/ast/call_statement.h"
#include "src/tint/lang/wgsl/ast/stage_attribute.h"
#include "src/tint/utils/text/string_stream.h"
HasSubstr;
usingnamespacetint::core::number_suffixes;
namespace tint::hlsl::writer {
namespace {
HlslASTPrinterTest_Type;
TEST_F(HlslASTPrinterTest_Type, EmitType_Array) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_ArrayOfArray) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_ArrayOfArrayOfArray) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Array_WithoutName) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Bool) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_F16) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_F32) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_I32) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Matrix_F16) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Matrix_F32) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_StructDecl) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_StructDecl_OmittedIfStorageBuffer) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Struct) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Struct_NameCollision) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Struct_WithOffsetAttributes) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_U32) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Vector) { … }
TEST_F(HlslASTPrinterTest_Type, EmitType_Void) { … }
TEST_F(HlslASTPrinterTest_Type, EmitSampler) { … }
TEST_F(HlslASTPrinterTest_Type, EmitSamplerComparison) { … }
struct HlslDepthTextureData { … };
inline std::ostream& operator<<(std::ostream& out, HlslDepthTextureData data) { … }
HlslDepthTexturesTest;
TEST_P(HlslDepthTexturesTest, Emit) { … }
INSTANTIATE_TEST_SUITE_P(…);
HlslDepthMultisampledTexturesTest;
TEST_F(HlslDepthMultisampledTexturesTest, Emit) { … }
enum class TextureDataType { … };
struct HlslSampledTextureData { … };
inline std::ostream& operator<<(std::ostream& out, HlslSampledTextureData data) { … }
HlslSampledTexturesTest;
TEST_P(HlslSampledTexturesTest, Emit) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(HlslASTPrinterTest_Type, EmitMultisampledTexture) { … }
struct HlslStorageTextureData { … };
inline std::ostream& operator<<(std::ostream& out, HlslStorageTextureData data) { … }
HlslStorageTexturesTest;
TEST_P(HlslStorageTexturesTest, Emit) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}