Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Render.Unlit.TileMap.Model
Contents
Synopsis
- type Model buf = Indexed buf Packed VertexAttrs
- type Vertex = Vertex3d VertexAttrs
- type VertexAttrs = "uv" ::: Vec2
- data AttrsF f = Attrs {
- params :: HKD f TileMapParams
- transforms :: HKD f Transform
- type Attrs = AttrsF Identity
- type Stores = AttrsF Vector
- type Buffers = AttrsF (Allocated 'Coherent)
- data TileMapParams = TileMapParams {
- tmpTextureIds :: IVec4
- tmpViewOffset :: Vec2
- tmpViewportSize :: Vec2
- tmpMapTextureSize :: Vec2
- tmpTilesetTextureSize :: Vec2
- tmpTileSize :: Vec2
- tmpTilesetOffset :: Vec2
- tmpTilesetBorder :: Vec2
- type ObserverCoherent = ObserverIO Buffers
Documentation
type Model buf = Indexed buf Packed VertexAttrs Source #
Vertex data
type Vertex = Vertex3d VertexAttrs Source #
type VertexAttrs = "uv" ::: Vec2 Source #
Instance data
Constructors
Attrs | |
Fields
|
Instances
Show Attrs Source # | |
Show Buffers Source # | |
Show Stores Source # | |
HasVertexInputBindings Attrs Source # | |
Defined in Render.Unlit.TileMap.Model Methods vertexInputBindings :: [VertexInputBinding] | |
HasVertexBuffers Buffers Source # | |
Defined in Render.Unlit.TileMap.Model Associated Types type VertexBuffersOf Buffers | |
VertexBuffers Buffers Source # | |
Defined in Render.Unlit.TileMap.Model Methods createInitial :: forall env (m :: Type -> Type). MonadVulkan env m => Int -> Text -> ResourceT m Buffers destroyCurrent :: HasVulkan env => env -> Buffers -> IO () | |
UpdateCoherent Buffers Stores Source # | |
Defined in Render.Unlit.TileMap.Model Methods updateCoherent :: MonadVulkan env m => Buffers -> Stores -> m Buffers | |
Generic (AttrsF f) Source # | |
type Specialization Pipeline | |
Defined in Render.Unlit.TileMap.Pipeline type Specialization Pipeline = () | |
type VertexBuffersOf Buffers Source # | |
Defined in Render.Unlit.TileMap.Model | |
type Rep (AttrsF f) Source # | |
Defined in Render.Unlit.TileMap.Model type Rep (AttrsF f) = D1 ('MetaData "AttrsF" "Render.Unlit.TileMap.Model" "keid-render-basic-0.1.8.0-inplace" 'False) (C1 ('MetaCons "Attrs" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HKD f TileMapParams)) :*: S1 ('MetaSel ('Just "transforms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HKD f Transform)))) |
data TileMapParams Source #
Constructors
TileMapParams | |
Fields
|
Instances
type ObserverCoherent = ObserverIO Buffers Source #