-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Implement the degrees HLSL Function #99104
Copy link
Copy link
Closed
Labels
HLSLHLSL Language SupportHLSL Language Supportbackend:DirectXbackend:SPIR-Vbot:HLSLclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"metaissueIssue to collect references to a group of similar or related issues.Issue to collect references to a group of similar or related issues.
Metadata
Metadata
Assignees
Labels
HLSLHLSL Language SupportHLSL Language Supportbackend:DirectXbackend:SPIR-Vbot:HLSLclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"metaissueIssue to collect references to a group of similar or related issues.Issue to collect references to a group of similar or related issues.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Closed
degreesclang builtin,degreesclang builtin withhlsl_intrinsics.hdegreestoCheckHLSLBuiltinFunctionCallinSemaChecking.cppdegreestoEmitHLSLBuiltinExprinCGBuiltin.cppclang/test/CodeGenHLSL/builtins/degrees.hlslclang/test/SemaHLSL/BuiltIns/degrees-errors.hlslint_spv_degreesintrinsic inIntrinsicsSPIRV.tddegreeslowering and map it toint_spv_degreesinSPIRVInstructionSelector::selectIntrinsic.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/degrees.llDirectX
There were no DXIL opcodes found for
degrees.SPIR-V
Degrees:
Description:
Degrees
Converts radians to degrees, i.e., radians * 180 / π.
The operand radians must be a scalar or vector whose component type is
16-bit or 32-bit floating-point.
Result Type and the type of radians must be the same type. Results
are computed per component.
12
<id>
radians
Test Case(s)
Example 1
HLSL:
Converts the specified value from radians to degrees.
Parameters
Return Value
The result of converting the x parameter from radians to degrees.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
See also
Intrinsic Functions (DirectX HLSL)