Skip to content

[HLSL] Read Only Resources incorrectly allow writing #141842

Open
@V-FEXrt

Description

@V-FEXrt

Resources like Buffer and StructuredBuffer are supposed to be read only but this is not currently enforced.

Ex: https://hlsl.godbolt.org/z/sqMMffh6K fails under DXC but compiles under clang.

This is a bug that should be fixed.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language SupportbugIndicates an unexpected problem or unintended behavior

Type

Projects

Status

Active

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions