[clang] [llvm] [HLSL] Implement Texture2D type and Sample method in Clang (PR #177240)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 29 09:32:54 PST 2026
================
@@ -31,6 +31,14 @@ enum class ResourceClass : uint8_t {
LastEntry = Sampler,
};
+enum class ResourceDimension : uint8_t {
+ DimensionUnknown = 0,
+ Dimension1D,
+ Dimension2D,
+ Dimension3D,
+ DimensionCube,
+};
----------------
hekota wrote:
I like the `ResourceDimension::Dim1D` style, and it is a nice that it matches SPIR-V naming.
https://github.com/llvm/llvm-project/pull/177240
More information about the cfe-commits
mailing list