Add 8-bit push constant support to vulkano-shaders (#1544)

This commit is contained in:
Dana Marcuse 2021-04-11 00:57:22 -04:00 committed by GitHub
parent bb51359d32
commit cbd915b107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -33,8 +33,9 @@
- Better documentation of everything in the `query` module.
- An example demonstrating occlusion queries.
- The deprecated `cause` trait function on Vulkano error types is replaced with `source`.
- Vulkano-shaders: Fixed and refined the generation of the `readonly` descriptor attribute. It should now correctly mark uniforms and sampled images as read-only, but storage buffers and images only if explicitly marked as `readonly` in the shader.
- Fixed bug in descriptor array layers check when the image is a cubemap.
- Vulkano-shaders: Fixed and refined the generation of the `readonly` descriptor attribute. It should now correctly mark uniforms and sampled images as read-only, but storage buffers and images only if explicitly marked as `readonly` in the shader.
- Vulkano-shaders: Added support for StoragePushConstant8 SPIR-V capability.
# Version 0.22.0 (2021-03-31)

View File

@ -503,6 +503,9 @@ fn capability_requirement(cap: &Capability) -> DeviceRequirement {
Capability::CapabilityStorageInputOutput8 => {
DeviceRequirement::Extensions(&["khr_8bit_storage"])
}
Capability::CapabilityStoragePushConstant8 => {
DeviceRequirement::Extensions(&["khr_8bit_storage"])
}
}
}

View File

@ -552,5 +552,6 @@ enumeration! {
CapabilityStoragePushConstant16 = 4435,
CapabilityStorageInputOutput16 = 4436,
CapabilityStorageInputOutput8 = 4448,
CapabilityStoragePushConstant8 = 4450,
} Capability;
}