Tesseract Engine Documentation

GpuVariableInterface Members

GpuVariableInterface overview

Public Instance Properties

_gpuPointer Gpu handle that sets either the read texture each pass after it is swapped with the write texture.
_read Texture used by Gpu to read values in. Swapped with write texture each pass.
_readRenderTarget A render target for the read texture.
_write Texture used by Gpu to write values out. Swapped with read texture each pass.
_writeRenderTarget A render target for the write texture.

Public Instance Methods

AddPropertyOverloaded. Add a single property to the GpuVariable, before setting texture data.
SetTexData Set the texture with all added properties. Scales values based on minValue and maxValue, to between 0-1.
SwapBuffers Swap the read and write textures. Must be done each pass for previously rendered data to be availible to shaders during next pass.
WriteToFile Usefull function for debugging. Writes texture out to an image file.

See Also

GpuVariableInterface Interface | DarkWynter.Stream.PhysicsGpu Namespace