Synced
ShaderIrBuilder.LoadStorage
Section titled “ShaderIrBuilder.LoadStorage”
- Loads a storage value at this exact point in the block’s memory-effect sequence.
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.LoadStorage(Inno.Rendering.Shaders.ShaderIrValue resource, Inno.Rendering.Shaders.ShaderIrValue coordinate)Parameters
Section titled “Parameters”Parameter resource: A readable typed storage input.
Parameter coordinate: uint buffer index; int2 image coordinate, or int3 for an image array/volume.
Returns
Section titled “Returns”The declared buffer element or float4 image value.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The resource is write-only or the coordinate is incompatible.