Synced
ShaderIrBuilder.Sample
Section titled “ShaderIrBuilder.Sample”
- Samples a texture using implicit derivatives; the enclosing stage must be Fragment.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public Inno.Rendering.Shaders.ShaderIrValue Inno.Rendering.Shaders.ShaderIrBuilder.Sample(Inno.Rendering.Shaders.ShaderIrValue texture, Inno.Rendering.Shaders.ShaderIrValue coordinate)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.
Returns
Section titled “Returns”The sampled float4 value.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Operands have incompatible types or owners.