chromium/third_party/dawn/src/tint/lang/hlsl/writer/ast_printer/type_test.cc

// Copyright 2020 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//    list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
//    contributors may be used to endorse or promote products derived from
//    this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#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;  // NOLINT

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();

}  // namespace
}  // namespace tint::hlsl::writer