Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Codec.Ktx2.DFD.Khronos.BasicV2
Synopsis
- pattern VENDOR_ID :: (Eq a, Num a) => a
- pattern DESCRIPTOR_TYPE :: (Eq a, Num a) => a
- pattern VERSION :: (Eq a, Num a) => a
- data BasicV2 = BasicV2 {
- colorModel :: Word8
- colorPrimaries :: Word8
- transferFunction :: Word8
- flags :: Word8
- texelBlockDimension0 :: Word8
- texelBlockDimension1 :: Word8
- texelBlockDimension2 :: Word8
- texelBlockDimension3 :: Word8
- bytesPlane0 :: Word8
- bytesPlane1 :: Word8
- bytesPlane2 :: Word8
- bytesPlane3 :: Word8
- bytesPlane4 :: Word8
- bytesPlane5 :: Word8
- bytesPlane6 :: Word8
- bytesPlane7 :: Word8
- samples :: Vector Sample
- getter :: Int -> Get BasicV2
- putter :: BasicV2 -> PutM ()
- data Sample = Sample {}
- fromBlock :: Block -> Maybe BasicV2
- toBlock :: BasicV2 -> Block
Documentation
pattern DESCRIPTOR_TYPE :: (Eq a, Num a) => a Source #
Basic DFD Block
A basic descriptor block is designed to encode common metadata associated with bulk data — especially image or texture data.
While this descriptor holds more information about the data interpretation than is needed by many applications, a comprehensive encoding reduces the risk of metadata needed by different APIs being lost in translation.
The format is described in terms of a repeating axis-aligned texel block composed of samples. Each sample contains a single channel of information with a single spatial offset within the texel block, and consists of an amount of contiguous data. This descriptor block consists of information about the interpretation of the texel block as a whole, supplemented by a description of a number of samples taken from one or more planes of contiguous memory.
https://registry.khronos.org/DataFormat/specs/1.3/dataformat.1.3.html
Constructors
BasicV2 | |
Fields
|
Instances
Constructors
Sample | |
Fields
|