| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.Render.Plugin
Synopsis
- data RenderPlugin = RenderPlugin
- renderCameras :: System ()
- clearCameras :: System ()
- withSurfaceTexture :: RenderSurface -> TextureDescriptor -> (Texture -> System a) -> System ()
- presentSurface :: RenderSurface -> System ()
- data Bindings f = Bindings {}
- newtype VertexInput f = VertexInput (BuiltIn f "vertex_index" Uint)
- data VertexOutput f = VertexOutput {}
- data DummyFullscreenMaterial
- data ClearMaterial
- data NoBindings (f :: k) = NoBindings
- vertexShader :: VertexInput GPU -> Shader NoMaterial (VertexOutput GPU)
Documentation
data RenderPlugin Source #
Constructors
| RenderPlugin |
Instances
| Eq RenderPlugin Source # | |
Defined in Mischief.Render.Plugin | |
| Plugin RenderPlugin Source # | |
Defined in Mischief.Render.Plugin | |
renderCameras :: System () Source #
clearCameras :: System () Source #
withSurfaceTexture :: RenderSurface -> TextureDescriptor -> (Texture -> System a) -> System () Source #
presentSurface :: RenderSurface -> System () Source #
Instances
newtype VertexInput f Source #
Constructors
| VertexInput (BuiltIn f "vertex_index" Uint) |
Instances
| ShaderParam VertexInput Source # | |||||
Defined in Mischief.Render.Plugin Methods collectParams :: Params paramDefinition :: ParamDefinition collectValues :: VertexInput GPU -> Values | |||||
| Generic (VertexInput f) Source # | |||||
Defined in Mischief.Render.Plugin Associated Types
Methods from :: VertexInput f -> Rep (VertexInput f) x # to :: Rep (VertexInput f) x -> VertexInput f # | |||||
| type Rep (VertexInput f) Source # | |||||
Defined in Mischief.Render.Plugin type Rep (VertexInput f) = D1 ('MetaData "VertexInput" "Mischief.Render.Plugin" "mischief-render-0.1.0.0-inplace" 'True) (C1 ('MetaCons "VertexInput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BuiltIn f "vertex_index" Uint)))) | |||||
data VertexOutput f Source #
Constructors
| VertexOutput | |
Instances
| ShaderParam VertexOutput Source # | |||||
Defined in Mischief.Render.Plugin Methods collectParams :: Params paramDefinition :: ParamDefinition dummyParam :: VertexOutput GPU collectValues :: VertexOutput GPU -> Values | |||||
| Generic (VertexOutput f) Source # | |||||
Defined in Mischief.Render.Plugin Associated Types
Methods from :: VertexOutput f -> Rep (VertexOutput f) x # to :: Rep (VertexOutput f) x -> VertexOutput f # | |||||
| type Rep (VertexOutput f) Source # | |||||
Defined in Mischief.Render.Plugin type Rep (VertexOutput f) = D1 ('MetaData "VertexOutput" "Mischief.Render.Plugin" "mischief-render-0.1.0.0-inplace" 'False) (C1 ('MetaCons "VertexOutput" 'PrefixI 'True) (S1 ('MetaSel ('Just "pos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BuiltIn f "position" (Vec 4 Float))) :*: S1 ('MetaSel ('Just "uv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Location f 0 (Vec 2 Float))))) | |||||
data DummyFullscreenMaterial Source #
Material for rendering something to the whole screen.
Instances
| Material DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin Associated Types
| |||||||||||||||||||||||||
| type B DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type Extandable DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type Extends DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type IsPhantom DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type VI DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type VO DummyFullscreenMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
data ClearMaterial Source #
Instances
| Material ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin Associated Types
Methods vertex :: VI ClearMaterial GPU -> Shader ClearMaterial (VO ClearMaterial GPU) Source # fragment :: VO ClearMaterial GPU -> Shader ClearMaterial (Vec 4 Float) Source # fetch :: FetchBindings (B ClearMaterial) Source # | |||||||||||||||||||||||||
| type B ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type Extandable ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type Extends ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type IsPhantom ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type VI ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
| type VO ClearMaterial Source # | |||||||||||||||||||||||||
Defined in Mischief.Render.Plugin | |||||||||||||||||||||||||
data NoBindings (f :: k) Source #
Constructors
| NoBindings |
Instances
| Bindable (NoBindings :: Type -> Type) Source # | |||||
Defined in Mischief.Render.Plugin Methods collectBindings :: Nat -> Proxy (NoBindings Internal) -> (Bindings, Nat) collectLayouts :: Nat -> Proxy (NoBindings Internal) -> ([WGPUBindGroupLayoutEntry], Nat) collectEntries :: Nat -> NoBindings CPU -> ([WGPUBindGroupEntry], Nat) dummyBinding :: Nat -> (NoBindings GPU, Nat) | |||||
| Generic (NoBindings f) Source # | |||||
Defined in Mischief.Render.Plugin Associated Types
| |||||
| type Rep (NoBindings f) Source # | |||||
vertexShader :: VertexInput GPU -> Shader NoMaterial (VertexOutput GPU) Source #