spirv: Add support for runtime descriptor array cap.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -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 {
|
||||||
|
@@ -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");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user