[clang] [llvm] [HLSL] Implement Texture2D type and Sample method in Clang (PR #177240)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 08:13:21 PST 2026
================
@@ -31,6 +31,14 @@ enum class ResourceClass : uint8_t {
LastEntry = Sampler,
};
+enum class ResourceDimension : uint8_t {
+ DimensionUnknown = 0,
+ Dimension1D,
+ Dimension2D,
+ Dimension3D,
+ DimensionCube,
+};
----------------
s-perron wrote:
Yes, old habits die hard. However, you can't use a number at the start of an identifier. Do you have any other preferences?
We could do:
OneD, TwoD, ThreeD
or just
One, Two, Three
https://github.com/llvm/llvm-project/pull/177240
More information about the cfe-commits
mailing list