You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// No such thing as these:
// RWTexture2DMS g_rw_t2dms;
// RWTexture2DMSArray g_rw_t2dmsa;
Are multisample storage images supported in SPIR-V and not in DXC? Validation layers currently don't report an error when both VK_IMAGE_USAGE_STORAGE_BIT and a sample flag other than VK_SAMPLE_COUNT_1_BIT are specified for an image, is this valid?
Multisample storage images are an optional feature in Vulkan; support is indicated/enabled with VkPhysicalDeviceFeatures::shaderStorageImageMultisample. When enabled, SPIR-V shader modules can declare the StorageImageMultisample capability, can declare OpTypeImage with Sampled=2 (storage image) and MS=1 (multisample), and can pass a Sample operand to OpImageRead and OpImageWrite to read/write a specific sample.
In GLSL this is available by declaring a image2DMS object and passing an extra int coordinate to imageLoad()/imageStore() to access a specific sample.
Activity
critsec commentedon Aug 6, 2019
Multisample storage images are an optional feature in Vulkan; support is indicated/enabled with
VkPhysicalDeviceFeatures::shaderStorageImageMultisample. When enabled, SPIR-V shader modules can declare theStorageImageMultisamplecapability, can declareOpTypeImagewithSampled=2(storage image) andMS=1(multisample), and can pass aSampleoperand toOpImageReadandOpImageWriteto read/write a specific sample.In GLSL this is available by declaring a
image2DMSobject and passing an extra int coordinate toimageLoad()/imageStore()to access a specific sample.