Add CapabilityDrawParameters (#1587)

This commit is contained in:
Icy Defiance 2021-05-30 16:58:15 -04:00 committed by GitHub
parent 2b7956be74
commit c09a46dea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -522,6 +522,9 @@ fn capability_requirement(cap: &Capability) -> DeviceRequirement {
DeviceRequirement::Features(&["shader_storage_image_write_without_format"])
}
Capability::CapabilityMultiViewport => DeviceRequirement::Features(&["multi_viewport"]),
Capability::CapabilityDrawParameters => {
DeviceRequirement::Features(&["shader_draw_parameters"])
}
Capability::CapabilityStorageUniformBufferBlock16 => {
DeviceRequirement::Extensions(&["khr_16bit_storage"])
}

View File

@ -547,6 +547,7 @@ enumeration! {
CapabilityStorageImageReadWithoutFormat = 55,
CapabilityStorageImageWriteWithoutFormat = 56,
CapabilityMultiViewport = 57,
CapabilityDrawParameters = 4427,
CapabilityStorageUniformBufferBlock16 = 4433,
CapabilityStorageUniform16 = 4434,
CapabilityStoragePushConstant16 = 4435,