blob: 79d41321c5367f4fb08e7558911fc1096fc54e1c [file] [log] [blame]
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/compiled_action.gni")
import("//flutter/testing/testing.gni")
if (enable_unittests) {
compiled_action_foreach("spirv_compile_exception_shaders") {
tool = "//flutter/lib/spirv/test:spirv_assembler"
sources = [
"image_type_arrayed_must_be_zero.spvasm",
"image_type_depth_must_be_zero.spvasm",
"image_type_dimensionality_must_be_2D.spvasm",
"image_type_multisampled_must_be_zero.spvasm",
"image_type_must_be_float.spvasm",
"image_type_previously_declared.spvasm",
"image_type_sampled_must_be_one.spvasm",
"sampled_image_type_image_type_not_declared.spvasm",
"sampled_image_type_invalid_image_type.spvasm",
"sampled_image_type_previously_declared.spvasm",
"unassigned_function_type.spvasm",
"unassigned_pointer_type.spvasm",
"unassigned_type.spvasm",
"unassigned_variable_type.spvasm",
"unsupported_addressing_model.spvasm",
"unsupported_capability.spvasm",
"unsupported_execution_mode.spvasm",
"unsupported_ext_inst_import.spvasm",
"unsupported_float_width.spvasm",
"unsupported_glsl_inst.spvasm",
"unsupported_matrix_column_count.spvasm",
"unsupported_matrix_non_square.spvasm",
"unsupported_memory_model.spvasm",
"unsupported_variable_storage_class.spvasm",
"unsupported_vector_component_count.spvasm",
"unsupported_vector_type.spvasm",
]
outputs = [ "$target_gen_dir/{{source_name_part}}.spv" ]
args = [
"{{source}}",
rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.spv",
]
}
}