Skip to content

[HLSL][SPIR-V] Use OpImageFetch when loading from Buffer type resources #162891

@luciechoi

Description

@luciechoi

https://godbolt.org/z/KKWbanoWv

Currently, OpImageRead is used to read the values from Buffer arrays.

It should be OpImageFetch.

Otherwise, it might not pass the spirv validator.

Discovered while working on #162540

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions