ombra-1.1.0.0: Render engine.

Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.Ombra.OutBuffer

Contents

Synopsis

Documentation

type GBuffer = OutBuffer Source #

A container that can be used to store the output of some drawing operation.

type DepthBuffer = OutBuffer OutDepthBuffer Source #

A container for depth/stencil values.

data BufferPair o Source #

A GBuffer and a DepthBuffer of the same size.

type GBufferInfo = OutBufferInfo Source #

type DepthBufferInfo = OutBufferInfo OutDepthBuffer Source #

data GBufferSampler o Source #

A GPU object that can be used to retrieve data from a GBuffer.

Instances

FragmentShaderOutput o => Uniform (GBufferSampler o) Source # 

Associated Types

type CPUUniform (GBufferSampler o) :: * Source #

Methods

foldrUniform :: Proxy * (GBufferSampler o) -> (UniformValue -> b -> b) -> b -> CPUUniform (GBufferSampler o) -> b Source #

FragmentShaderOutput o => ShaderInput (GBufferSampler o) Source # 

Methods

buildMST :: (forall x. ShaderType x => Int -> x) -> Int -> (GBufferSampler o, Int) Source #

foldrMST :: (forall x. ShaderType x => x -> b -> b) -> b -> GBufferSampler o -> b Source #

FragmentShaderOutput o => MultiShaderType (GBufferSampler o) Source # 

Associated Types

type ExprMST (GBufferSampler o) :: * Source #

type CPUUniform (GBufferSampler o) Source # 
type ExprMST (GBufferSampler o) Source # 

sampleGBuffer :: GBufferSampler o -> GVec2 -> o Source #

Sample a value from a GBufferSampler.

bufferSize :: OutBuffer o -> (Int, Int) Source #

Conversion between buffers and textures