mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-23 22:50:28 +02:00
[vulkan] Added checks for 8/16bits on storage buffer access
This commit is contained in:
parent
62e8666eee
commit
21fa6b5805
1 changed files with 10 additions and 0 deletions
|
|
@ -400,6 +400,16 @@ FN_MAX_LIMIT_LIST
|
|||
return features.bit16_storage.uniformAndStorageBuffer16BitAccess;
|
||||
}
|
||||
|
||||
/// Returns true if the device supports reading 8-bit values from a storage buffer.
|
||||
bool IsStorageBuffer8BitAccessSupported() const {
|
||||
return features.bit8_storage.storageBuffer8BitAccess;
|
||||
}
|
||||
|
||||
/// Returns true if the device supports reading 16-bit values from a storage buffer.
|
||||
bool IsStorageBuffer16BitAccessSupported() const {
|
||||
return features.bit16_storage.storageBuffer16BitAccess;
|
||||
}
|
||||
|
||||
/// Returns true if the device supports binding multisample images as storage images.
|
||||
bool IsStorageImageMultisampleSupported() const {
|
||||
return features.features.shaderStorageImageMultisample;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue