Synced
ShaderIrBuilder.SampleLevel
Section titled “ShaderIrBuilder.SampleLevel”
- Samples a texture at an explicit floating-point mip level without implicit derivatives.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Rendering.Shaders.ShaderIrValue InnoEditor.Rendering.Shaders.ShaderIrBuilder.SampleLevel(InnoEditor.Rendering.Shaders.ShaderIrValue texture, InnoEditor.Rendering.Shaders.ShaderIrValue coordinate, InnoEditor.Rendering.Shaders.ShaderIrValue level)Parameters
Section titled “Parameters”Parameter texture: A sampled 2D, 2D-array, 3D or cube texture.
Parameter coordinate: float2 for 2D, or float3 for an array, volume or cube.
Parameter level: Scalar floating-point mip level.
Returns
Section titled “Returns”The sampled float4 value.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Operands have incompatible types or owners.