[clang] [HLSL] Implement TextureCube resource type (PR #218520)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 28 12:18:35 PDT 2026
================
@@ -1970,8 +2028,12 @@ BuiltinTypeDeclBuilder::addSampleLevelMethods(ResourceDimension Dim,
.returnValue(PH::LastStmt)
.finalize();
+ // Cube textures do not support offsets.
+ if (Dim == ResourceDimension::Cube)
+ return *this;
----------------
hekota wrote:
```suggestion
if (!hasResourceOffset(Dim))
return *this;
```
https://github.com/llvm/llvm-project/pull/218520
More information about the cfe-commits
mailing list