asint
Description
Reinterpret bits as an int.
Signature
/// Requires Capability Set 1: int asint(float x); /// Requires Capability Set 1: int asint(uint x); /// Requires Capability Set 1: vector<int, N> asint<N:int>(vector<float, N> x); /// Requires Capability Set 1: vector<int, N> asint<N:int>(vector<uint, N> x); /// Requires Capability Set 2: matrix<int, N, M> asint<N:int, M:int>(matrix<float, N, M> x); /// Requires Capability Set 2: matrix<int, N, M> asint<N:int, M:int>(matrix<uint, N, M> x); int asint(int x); vector<int, N> asint<N:int>(vector<int, N> x); matrix<int, N, M> asint<N:int, M:int>(matrix<int, N, M> x);
Generic Parameters
N : int
M : int
Parameters
x : float
x : uint
x : vector<float, N>
x : vector<uint, N>
x : matrix<float, N, M>
x : matrix<uint, N, M>
x : int
x : vector<int, N>
x : matrix<int, N, M>
Availability and Requirements
Capability Set 1
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
metal
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.
Capability Set 2
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
spirv
Available in all stages.