Skip to content

Commit cbd915b

Browse files
authored
Add 8-bit push constant support to vulkano-shaders (#1544)
1 parent bb51359 commit cbd915b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Diff for: CHANGELOG_VULKANO.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
- Better documentation of everything in the `query` module.
3434
- An example demonstrating occlusion queries.
3535
- The deprecated `cause` trait function on Vulkano error types is replaced with `source`.
36-
- 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.
3736
- Fixed bug in descriptor array layers check when the image is a cubemap.
37+
- 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.
38+
- Vulkano-shaders: Added support for StoragePushConstant8 SPIR-V capability.
3839

3940
# Version 0.22.0 (2021-03-31)
4041

Diff for: vulkano-shaders/src/codegen.rs

+3
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,9 @@ fn capability_requirement(cap: &Capability) -> DeviceRequirement {
503503
Capability::CapabilityStorageInputOutput8 => {
504504
DeviceRequirement::Extensions(&["khr_8bit_storage"])
505505
}
506+
Capability::CapabilityStoragePushConstant8 => {
507+
DeviceRequirement::Extensions(&["khr_8bit_storage"])
508+
}
506509
}
507510
}
508511

Diff for: vulkano-shaders/src/enums.rs

+1
Original file line numberDiff line numberDiff line change
@@ -552,5 +552,6 @@ enumeration! {
552552
CapabilityStoragePushConstant16 = 4435,
553553
CapabilityStorageInputOutput16 = 4436,
554554
CapabilityStorageInputOutput8 = 4448,
555+
CapabilityStoragePushConstant8 = 4450,
555556
} Capability;
556557
}

0 commit comments

Comments
 (0)