We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
asuint
hlsl_intrinsics.h
CheckHLSLBuiltinFunctionCall
SemaChecking.cpp
EmitHLSLBuiltinExpr
CGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/asuint.hlsl
clang/test/SemaHLSL/BuiltIns/asuint-errors.hlsl
There were no DXIL opcodes found for most asuint cases. There is an opcode for the three arg case:
There is no support for asuint when targeting SPIR-V.
//dxc asuint_test.hlsl -T lib_6_8 -enable-16bit-types -O0 export uint4 fn(double4 p1, uint4 p2, uint4 p3) { asuint(p1, p2, p3); return p3; }
//dxc asuint_1_test.hlsl -T lib_6_8 -enable-16bit-types -O0 export uint4 fn(float p1) { return asuint(p1); }
//dxc asuint_2_test.hlsl -T lib_6_8 -enable-16bit-types -O0 export uint4 fn(uint p1) { return asuint(p1); }
//dxc asuint_3_test.hlsl -T lib_6_8 -enable-16bit-types -O0 export uint4 fn(int p1) { return asuint(p1); }
Interprets the bit pattern of x as an unsigned integer.
The input interpreted as an unsigned integer.
This function is supported in the following shader models.
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered:
I can work on it
Sorry, something went wrong.
cab1ae9
joaosaffran
Successfully merging a pull request may close this issue.
asuint
clang builtin,asuint
clang builtin withhlsl_intrinsics.h
asuint
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
asuint
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/asuint.hlsl
clang/test/SemaHLSL/BuiltIns/asuint-errors.hlsl
DirectX
There were no DXIL opcodes found for most
asuint
cases. There is an opcode for the three arg case:SPIR-V
There is no support for
asuint
when targeting SPIR-V.Test Case(s)
Example 1
Example 2
Example 3
Example 4
HLSL:
Interprets the bit pattern of x as an unsigned integer.
Parameters
Return Value
The input interpreted as an unsigned integer.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: