spirv: Add support for runtime descriptor array cap.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
Bas Nieuwenhuizen
2018-04-12 01:36:22 +02:00
parent c48feaf2d1
commit 5f7ebb5206
2 changed files with 5 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ struct spirv_supported_capabilities {
bool gcn_shader; bool gcn_shader;
bool trinary_minmax; bool trinary_minmax;
bool descriptor_array_dynamic_indexing; bool descriptor_array_dynamic_indexing;
bool runtime_descriptor_array;
}; };
typedef struct shader_info { typedef struct shader_info {

View File

@@ -3390,6 +3390,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(descriptor_array_dynamic_indexing, cap); spv_check_supported(descriptor_array_dynamic_indexing, cap);
break; break;
case SpvCapabilityRuntimeDescriptorArrayEXT:
spv_check_supported(runtime_descriptor_array, cap);
break;
default: default:
vtn_fail("Unhandled capability"); vtn_fail("Unhandled capability");
} }