Skip to content

[HLSL] Read Only Resources incorrectly allow writing #141842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
V-FEXrt opened this issue May 28, 2025 · 1 comment
Open

[HLSL] Read Only Resources incorrectly allow writing #141842

V-FEXrt opened this issue May 28, 2025 · 1 comment
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior HLSL HLSL Language Support

Comments

@V-FEXrt
Copy link
Contributor

V-FEXrt commented May 28, 2025

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.

@V-FEXrt V-FEXrt added bug Indicates an unexpected problem or unintended behavior HLSL HLSL Language Support labels May 28, 2025
@llvmbot
Copy link
Member

llvmbot commented May 28, 2025

@llvm/issue-subscribers-bug

Author: Ashley Coleman (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior HLSL HLSL Language Support
Projects
Status: Planning
Development

No branches or pull requests

2 participants