[all-commits] [llvm/llvm-project] f3752d: [HLSL] Implement Texture2D::Load methods and built...
Steven Perron via All-commits
all-commits at lists.llvm.org
Thu Mar 12 04:08:48 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3752dcb60fc89d1af7533b9faaa4c53eb1d2118
https://github.com/llvm/llvm-project/commit/f3752dcb60fc89d1af7533b9faaa4c53eb1d2118
Author: Steven Perron <stevenperron at google.com>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M clang/include/clang/Basic/Builtins.td
M clang/lib/CodeGen/CGHLSLBuiltins.cpp
M clang/lib/CodeGen/CGHLSLRuntime.h
M clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp
M clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.h
M clang/lib/Sema/HLSLExternalSemaSource.cpp
M clang/lib/Sema/SemaHLSL.cpp
M clang/test/AST/HLSL/StructuredBuffers-AST.hlsl
M clang/test/AST/HLSL/Texture2D-scalar-AST.hlsl
M clang/test/AST/HLSL/Texture2D-vector-AST.hlsl
M clang/test/AST/HLSL/TypedBuffers-AST.hlsl
A clang/test/CodeGenHLSL/resources/Texture2D-Load.hlsl
A clang/test/SemaHLSL/Texture2D-Load-errors.hlsl
Log Message:
-----------
[HLSL] Implement Texture2D::Load methods and builtin (#185708)
Implements the Textur2D::Load methods. A new HLSL buildin is added to
implement the method. The HLSL builtin is lowered to the
resource_load_level intrinsic.
We chose to have have a single operand hold both the coordinate and the
level in the builtin, as is done in the Load method itself. This was to
make the external sema source easier. It is easier to split the vector
during codegen than in sema.
Assisted-by: Gemini
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list