mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Enable scalar block layout feature in VK_Adv_CBuffer_Zoo
This commit is contained in:
@@ -241,14 +241,19 @@ void main()
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR,
|
||||
};
|
||||
|
||||
VkPhysicalDeviceScalarBlockLayoutFeaturesEXT scalarFeatures = {
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES_EXT,
|
||||
};
|
||||
|
||||
_16bitFeatures.uniformAndStorageBuffer16BitAccess = VK_TRUE;
|
||||
_8bitFeatures.uniformAndStorageBuffer16BitAccess = VK_TRUE;
|
||||
scalarFeatures.scalarBlockLayout = VK_TRUE;
|
||||
|
||||
devInfoNext = &_8bitFeatures;
|
||||
_8bitFeatures.pNext = &_16bitFeatures;
|
||||
_16bitFeatures.pNext = &scalarFeatures;
|
||||
|
||||
features.shaderFloat64 = true;
|
||||
features.shaderInt16 = true;
|
||||
features.shaderInt64 = true;
|
||||
|
||||
// initialise, create window, create context, etc
|
||||
|
||||
Reference in New Issue
Block a user