spirv: Add support for VK_EXT_descriptor_indexing uniform indexing caps.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -53,6 +53,7 @@ struct spirv_supported_capabilities {
|
|||||||
bool subgroup_vote;
|
bool subgroup_vote;
|
||||||
bool gcn_shader;
|
bool gcn_shader;
|
||||||
bool trinary_minmax;
|
bool trinary_minmax;
|
||||||
|
bool descriptor_array_dynamic_indexing;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct shader_info {
|
typedef struct shader_info {
|
||||||
|
@@ -3384,6 +3384,12 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||||||
spv_check_supported(shader_viewport_index_layer, cap);
|
spv_check_supported(shader_viewport_index_layer, cap);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SpvCapabilityInputAttachmentArrayDynamicIndexingEXT:
|
||||||
|
case SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT:
|
||||||
|
case SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT:
|
||||||
|
spv_check_supported(descriptor_array_dynamic_indexing, cap);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
vtn_fail("Unhandled capability");
|
vtn_fail("Unhandled capability");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user