-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Implement the dst
HLSL Function
#99108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@farzonl to outline the header implementation. |
@davidcook-msft this ready for planning. |
I'll get started on this. |
3 tasks
llvm-sync bot
pushed a commit
to arm/arm-toolchain
that referenced
this issue
Apr 9, 2025
fixes: llvm/llvm-project#99108 Implement dst algorithm in the hlsl_intrinsics.h and added test cases for HLSL codegen and sema - [x] implement dst algorithm in the hlsl_intrinsics.h - [x] Add HLSL codegen tests to clang/test/CodeGenHLSL/builtins/dst.hlsl - [x] Add sema tests to clang/test/SemaHLSL/BuiltIns/dst-errors.hlsl
AllinLeeYL
pushed a commit
to AllinLeeYL/llvm-project
that referenced
this issue
Apr 10, 2025
fixes: llvm#99108 Implement dst algorithm in the hlsl_intrinsics.h and added test cases for HLSL codegen and sema - [x] implement dst algorithm in the hlsl_intrinsics.h - [x] Add HLSL codegen tests to clang/test/CodeGenHLSL/builtins/dst.hlsl - [x] Add sema tests to clang/test/SemaHLSL/BuiltIns/dst-errors.hlsl
var-const
pushed a commit
to ldionne/llvm-project
that referenced
this issue
Apr 17, 2025
fixes: llvm#99108 Implement dst algorithm in the hlsl_intrinsics.h and added test cases for HLSL codegen and sema - [x] implement dst algorithm in the hlsl_intrinsics.h - [x] Add HLSL codegen tests to clang/test/CodeGenHLSL/builtins/dst.hlsl - [x] Add sema tests to clang/test/SemaHLSL/BuiltIns/dst-errors.hlsl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dst
algorithm in thehlsl_intrinsics.h
clang/test/CodeGenHLSL/builtins/dst.hlsl
clang/test/SemaHLSL/BuiltIns/dst-errors.hlsl
DirectX
There were no DXIL opcodes found for
dst
.SPIR-V
There were no SPIRV GL ext opcodes found for
dst
.OpFMul:
Description:
Floating-point multiplication of Operand 1 and Operand 2.
Result Type must be a scalar or vector of floating-point
type.
The types of Operand 1 and Operand 2 both must be the same as
Result Type.
Results are computed per component.
5
133
<id>
Result Type
Result <id>
<id>
Operand 1
<id>
Operand 2
Test Case(s)
Example 1
HLSL:
Calculates a distance vector.
Syntax
Parameters
src0 [in]
Type: fVector
The first vector.
src1 [in]
Type: fVector
The second vector.
Return value
Type: fVector
The computed distance vector.
Remarks
This intrinsic function provides the same functionality as the Vertex Shader instruction dst.
See also
Intrinsic Functions
The text was updated successfully, but these errors were encountered: