Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Samples a texture at an explicit floating-point mip level without implicit derivatives.

API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor

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)

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.

The sampled float4 value.

Exception T:System.ArgumentException: Operands have incompatible types or owners.