Add 8bit storage support (#1452)

This commit is contained in:
Robin Heinemann 2020-12-08 23:36:14 +01:00 committed by GitHub
parent 63aaa853ff
commit d8f1e77502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- **Breaking** The `CommandBuffer` trait now has an additional required method, `kind`.
- **Breaking** Update dependency `winit` 0.22 -> 0.23
- **Breaking** Added an Option to the ComputePipeline constructor to enable pipeline caching.
- Add support for 8bit storage.
- Some safety checks have been added to `execute_commands`/`execute_commands_from_vec` on `AutoCommandBufferBuilder`, but not everything is checked yet so it's still unsafe to call.
- Added two vulkano-win features `raw-window-handle_` and `winit_` to be able to use vulkano without winit.
- Added function to create surface from `RawWindowHandle`.

View File

@ -422,7 +422,7 @@ fn capability_requirement(cap: &Capability) -> DeviceRequirement {
Capability::CapabilityImageRect => panic!(), // not supported
Capability::CapabilitySampledRect => panic!(), // not supported
Capability::CapabilityGenericPointer => panic!(), // not supported
Capability::CapabilityInt8 => panic!(), // not supported
Capability::CapabilityInt8 => DeviceRequirement::Extensions(&["khr_8bit_storage"]),
Capability::CapabilityInputAttachment => DeviceRequirement::None,
Capability::CapabilitySparseResidency => {
DeviceRequirement::Features(&["shader_resource_residency"])
@ -467,6 +467,9 @@ fn capability_requirement(cap: &Capability) -> DeviceRequirement {
Capability::CapabilityStorageInputOutput16 => {
DeviceRequirement::Extensions(&["khr_16bit_storage"])
}
Capability::CapabilityStorageInputOutput8 => {
DeviceRequirement::Extensions(&["khr_8bit_storage"])
}
}
}

View File

@ -551,5 +551,6 @@ enumeration! {
CapabilityStorageUniform16 = 4434,
CapabilityStoragePushConstant16 = 4435,
CapabilityStorageInputOutput16 = 4436,
CapabilityStorageInputOutput8 = 4448,
} Capability;
}

View File

@ -114,6 +114,7 @@ device_extensions! {
khr_dedicated_allocation => b"VK_KHR_dedicated_allocation",
khr_incremental_present => b"VK_KHR_incremental_present",
khr_16bit_storage => b"VK_KHR_16bit_storage",
khr_8bit_storage => b"VK_KHR_8bit_storage",
khr_storage_buffer_storage_class => b"VK_KHR_storage_buffer_storage_class",
ext_debug_utils => b"VK_EXT_debug_utils",
khr_multiview => b"VK_KHR_multiview",