[clang] [llvm] [HLSL] Implement Texture2D type and Sample method in Clang (PR #177240)
Nathan Gauër via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 08:35:08 PST 2026
================
@@ -31,6 +31,14 @@ enum class ResourceClass : uint8_t {
LastEntry = Sampler,
};
+enum class ResourceDimension : uint8_t {
+ DimensionUnknown = 0,
+ Dimension1D,
+ Dimension2D,
+ Dimension3D,
+ DimensionCube,
+};
----------------
Keenuts wrote:
The SPIR-V side used `Dimension::Dim1D` so it's at least shorter
https://github.com/llvm/llvm-project/pull/177240
More information about the cfe-commits
mailing list