Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Samples a texture using implicit derivatives; the enclosing stage must be Fragment.

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

public InnoEditor.Rendering.Shaders.ShaderIrValue InnoEditor.Rendering.Shaders.ShaderIrBuilder.Sample(InnoEditor.Rendering.Shaders.ShaderIrValue texture, InnoEditor.Rendering.Shaders.ShaderIrValue coordinate)

Parameter texture: A sampled 2D, 2D-array, 3D or cube texture.

Parameter coordinate: float2 for 2D, or float3 for an array, volume or cube.

The sampled float4 value.

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