#include "src/tint/lang/core/ir/transform/robustness.h"
#include <utility>
#include "src/tint/lang/core/ir/transform/helper_test.h"
#include "src/tint/lang/core/type/array.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/external_texture.h"
#include "src/tint/lang/core/type/matrix.h"
#include "src/tint/lang/core/type/multisampled_texture.h"
#include "src/tint/lang/core/type/pointer.h"
#include "src/tint/lang/core/type/sampled_texture.h"
#include "src/tint/lang/core/type/storage_texture.h"
#include "src/tint/lang/core/type/struct.h"
#include "src/tint/lang/core/type/vector.h"
namespace tint::core::ir::transform {
namespace {
usingnamespacetint::core::fluent_types;
usingnamespacetint::core::number_suffixes;
IR_RobustnessTest;
struct BindingVariableCase { … };
inline std::ostream& operator<<(std::ostream& out, BindingVariableCase c) { … }
IR_BindingVariableRobustnessTest;
TEST_P(IR_RobustnessTest, VectorLoad_ConstIndex) { … }
TEST_P(IR_RobustnessTest, VectorLoad_ConstIndexViaLet) { … }
TEST_P(IR_RobustnessTest, VectorLoad_DynamicIndex) { … }
TEST_P(IR_RobustnessTest, VectorLoad_DynamicIndex_Signed) { … }
TEST_P(IR_RobustnessTest, VectorStore_ConstIndex) { … }
TEST_P(IR_RobustnessTest, VectorStore_ConstIndexViaLet) { … }
TEST_P(IR_RobustnessTest, VectorStore_DynamicIndex) { … }
TEST_P(IR_RobustnessTest, VectorStore_DynamicIndex_Signed) { … }
TEST_P(IR_RobustnessTest, Matrix_ConstIndex) { … }
TEST_P(IR_RobustnessTest, Matrix_ConstIndexViaLet) { … }
TEST_P(IR_RobustnessTest, Matrix_DynamicIndex) { … }
TEST_P(IR_RobustnessTest, Matrix_DynamicIndex_Signed) { … }
TEST_P(IR_RobustnessTest, Array_ConstSize_ConstIndex) { … }
TEST_P(IR_RobustnessTest, Array_ConstSize_ConstIndexViaLet) { … }
TEST_P(IR_RobustnessTest, Array_ConstSize_DynamicIndex) { … }
TEST_P(IR_RobustnessTest, Array_ConstSize_DynamicIndex_Signed) { … }
TEST_P(IR_RobustnessTest, NestedArrays) { … }
TEST_P(IR_RobustnessTest, NestedMixedTypes) { … }
TEST_P(IR_RobustnessTest, Private_LoadVectorElement) { … }
TEST_P(IR_RobustnessTest, Private_StoreVectorElement) { … }
TEST_P(IR_RobustnessTest, Private_Access) { … }
TEST_P(IR_RobustnessTest, PushConstant_LoadVectorElement) { … }
TEST_P(IR_RobustnessTest, PushConstant_StoreVectorElement) { … }
TEST_P(IR_RobustnessTest, PushConstant_Access) { … }
TEST_P(IR_BindingVariableRobustnessTest, Storage_LoadVectorElement) { … }
TEST_P(IR_BindingVariableRobustnessTest, Storage_StoreVectorElement) { … }
TEST_P(IR_BindingVariableRobustnessTest, Storage_Access) { … }
TEST_P(IR_BindingVariableRobustnessTest, Unifom_LoadVectorElement) { … }
TEST_P(IR_BindingVariableRobustnessTest, Unifom_StoreVectorElement) { … }
TEST_P(IR_BindingVariableRobustnessTest, Uniform_Access) { … }
TEST_P(IR_RobustnessTest, Workgroup_LoadVectorElement) { … }
TEST_P(IR_RobustnessTest, Workgroup_StoreVectorElement) { … }
TEST_P(IR_RobustnessTest, Workgroup_Access) { … }
TEST_P(IR_RobustnessTest, ConstantVector_DynamicIndex) { … }
TEST_P(IR_RobustnessTest, ConstantArray_DynamicIndex) { … }
TEST_P(IR_RobustnessTest, ParamValueArray_DynamicIndex) { … }
TEST_P(IR_BindingVariableRobustnessTest, RuntimeSizedArray_ConstIndex) { … }
TEST_P(IR_BindingVariableRobustnessTest, RuntimeSizedArray_DynamicIndex) { … }
TEST_P(IR_BindingVariableRobustnessTest, RuntimeSizedArray_InStruct_ConstIndex) { … }
TEST_P(IR_BindingVariableRobustnessTest, RuntimeSizedArray_InStruct_DynamicIndex) { … }
TEST_P(IR_BindingVariableRobustnessTest, RuntimeSizedArray_DisableClamping) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureDimensions) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureDimensions_WithLevel) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Sampled1D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Sampled2D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Sampled2DArray) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Sampled3D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Multisampled2D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Depth2D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Depth2DArray) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_DepthMultisampled2D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_External) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Storage1D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Storage2D) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Storage2DArray) { … }
TEST_P(IR_BindingVariableRobustnessTest, TextureLoad_Storage3D) { … }
TEST_P(IR_BindingVariableRobustnessTest, NoModify_TextureStore) { … }
TEST_P(IR_RobustnessTest, BindingsIgnored_Subset) { … }
TEST_P(IR_RobustnessTest, BindingsIgnored_ViaLets) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
}
}