[clang] [HLSL] Enable invoking a method on a constant buffer struct (PR #206596)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 29 18:12:44 PDT 2026
================
@@ -0,0 +1,85 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -finclude-default-header -o - %s | llvm-cxxfilt | FileCheck %s
+
+struct MyStruct {
+ float f;
+ RWBuffer<float> Buf;
+
+ void Store() const {
----------------
hekota wrote:
Yes, this is the case where the resource class/handle is constant, even though the resource (or the memory it is pointing to) is not.
https://github.com/llvm/llvm-project/pull/206596
More information about the cfe-commits
mailing list