chromium/third_party/dawn/src/tint/lang/wgsl/ast/transform/canonicalize_entry_point_io_test.cc

// Copyright 2021 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 "src/tint/lang/wgsl/ast/transform/canonicalize_entry_point_io.h"

#include "src/tint/lang/wgsl/ast/transform/helper_test.h"
#include "src/tint/lang/wgsl/ast/transform/unshadow.h"

namespace tint::ast::transform {
namespace {

CanonicalizeEntryPointIOTest;

TEST_F(CanonicalizeEntryPointIOTest, Error_MissingTransformData) {}

TEST_F(CanonicalizeEntryPointIOTest, NoShaderIO) {}

TEST_F(CanonicalizeEntryPointIOTest, Parameters_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, Parameters_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, Parameters_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, Parameter_TypeAlias) {}

TEST_F(CanonicalizeEntryPointIOTest, Parameter_TypeAlias_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_Spirv_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_kMsl) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_kMsl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_Hlsl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_NonStruct_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_NonStruct_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_NonStruct_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Spirv_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Msl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Hlsl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Spirv_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Msl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Hlsl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, Struct_ModuleScopeVariable) {}

TEST_F(CanonicalizeEntryPointIOTest, Struct_ModuleScopeVariable_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, Struct_TypeAliases) {}

TEST_F(CanonicalizeEntryPointIOTest, Struct_TypeAliases_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, InterpolateAttributes) {}

TEST_F(CanonicalizeEntryPointIOTest, InterpolateAttributes_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, InterpolateAttributes_Integers_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, InterpolateAttributes_Integers_Spirv_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, InvariantAttributes) {}

TEST_F(CanonicalizeEntryPointIOTest, InvariantAttributes_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, Struct_LayoutAttributes) {}

TEST_F(CanonicalizeEntryPointIOTest, Struct_LayoutAttributes_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, SortedMembers) {}

TEST_F(CanonicalizeEntryPointIOTest, SortedMembers_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, DontRenameSymbols) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_VoidNoReturn) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_VoidWithReturn) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_WithAuthoredMask) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_WithoutAuthoredMask) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_StructWithAuthoredMask) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_StructWithAuthoredMask_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_StructWithoutAuthoredMask) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_StructWithoutAuthoredMask_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_MultipleShaders) {}

TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_AvoidNameClash) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnNonStruct_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnNonStruct_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnStruct_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnStruct_Spirv_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnStruct_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnStruct_Msl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Spirv_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Msl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Hlsl_OutOfOrder) {}

TEST_F(CanonicalizeEntryPointIOTest, SpirvSampleMaskBuiltins) {}

TEST_F(CanonicalizeEntryPointIOTest, GLSLSampleMaskBuiltins) {}

TEST_F(CanonicalizeEntryPointIOTest, GLSLVertexInstanceIndexBuiltins) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Index_Attribute_Spirv) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Index_Attribute_Msl) {}

TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Index_Attribute_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, SubgroupBuiltins_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, SubgroupBuiltinsStruct_Hlsl) {}

TEST_F(CanonicalizeEntryPointIOTest, F16_Polyfill_Spirv) {}

}  // namespace
}  // namespace tint::ast::transform