Skip to content

[SPIR-V] Compilation fails with RWStructuredBuffer from ResourceDescriptorHeap not finding its associated counter variable #8215

@rbertin-aso

Description

@rbertin-aso

Hi everyone !!

Description
DXC fails on trying to find associated counter variable while trying to get a RWStructuredBuffer from ResourceDescriptorHeap through helper functions but it works if it is retrieved directly from ResourceDescriptorHeap

Steps to Reproduce
https://godbolt.org/z/jhW8o61WP does not compile. If switching the commented version and commenting the 2 lines above, it compiles.

Actual Behavior

:24:10: fatal error: cannot find the associated counter variable

Environment
DXC trunk.
Godbolt.

Also reproduced on larger code base with DXC fork of 1.8.2505.1 and windows 11

Have a nice day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions