Skip to content

Multisample storage images? #1015

Closed
Closed

Description

DXC states there is "no such thing" as RWTexture2DMS* (multisample storage images in D3D lingo):

indexing-operator_Mod.hlsl
indexing-operator_noerr.hlsl
indexing-operator.hlsl

// 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?

Activity

  1. critsec commented on Aug 6, 2019

    @critsec
    Member

    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.

  2. ghost closed this as completedon Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions