| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.Render.Texture
Documentation
Constructors
| Texture | |
Fields | |
data SwappableTexture Source #
Constructors
| SwappableTexture | |
Fields | |
newtype TextureView Source #
Constructors
| TextureView (Ptr WGPUTextureView) |
data TextureDescriptor Source #
Constructors
| TextureDescriptor | |
Instances
| Default TextureDescriptor Source # | |
Defined in Mischief.Render.Texture Methods | |
| Show TextureDescriptor Source # | |
Defined in Mischief.Render.Texture Methods showsPrec :: Int -> TextureDescriptor -> ShowS # show :: TextureDescriptor -> String # showList :: [TextureDescriptor] -> ShowS # | |
data TextureUsage Source #
Constructors
| TextureUsageNone | |
| TextureUsageCopySrc | |
| TextureUsageCopyDst | |
| TextureUsageTextureBinding | |
| TextureUsageStorageBinding | |
| TextureUsageRenderAttachment | |
| TextureUsageTransientAttachment |
Instances
| Show TextureUsage Source # | |
Defined in Mischief.Render.Texture Methods showsPrec :: Int -> TextureUsage -> ShowS # show :: TextureUsage -> String # showList :: [TextureUsage] -> ShowS # | |
processUsages :: [TextureUsage] -> WGPUTextureUsage Source #
createTexture :: RenderDevice -> TextureDescriptor -> IO Texture Source #
createTexture' :: RenderDevice -> TextureDescriptor -> IO (Ptr WGPUTexture) Source #
getDimension :: (Int, Int, Int) -> WGPUTextureDimension Source #
uploadImage :: RenderQueue -> Image -> Texture -> IO () Source #
createTextureForImage :: RenderDevice -> Image -> IO Texture Source #
createView :: Texture -> System TextureView Source #