Skip to content

Storage Image Multisample when ingesting SPIR-V is unsupported #8269

@hasenbanck

Description

@hasenbanck

When writing a simple resolve shader, that resolved a multi sampled texture (example in Slang):

#language slang 2026

[[vk::binding(0, 0)]] var texture: Texture2DMS;

[[shader("pixel")]]
func fs_main(float4 position : SV_Position) -> float4 {
    let pixel_coord = int2(position.xy);
    var color: float4;

    for (var index: int = 0; index < 8; index++) {
        color += texture.Load(pixel_coord, index);
    }

    color = color / 8.0;

    return color;
}

Then naga throws this error:

UnsupportedCapability(StorageImageMultisample)

I will write PR to solve this issue, since it seems that naga is actually implementing loading from multi samples textures just fine.

Affected version:

Trunk and v26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions