ktx-codec-0.0.2.1: Khronos texture format
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Ktx2.DFD.Khronos.BasicV2

Synopsis

Documentation

pattern VENDOR_ID :: (Eq a, Num a) => a Source #

Khronos

pattern DESCRIPTOR_TYPE :: (Eq a, Num a) => a Source #

Basic DFD Block

pattern VERSION :: (Eq a, Num a) => a Source #

KDF v1.3

data BasicV2 Source #

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

Instances details
Generic BasicV2 Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Associated Types

type Rep BasicV2 :: Type -> Type #

Methods

from :: BasicV2 -> Rep BasicV2 x #

to :: Rep BasicV2 x -> BasicV2 #

Show BasicV2 Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Eq BasicV2 Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Methods

(==) :: BasicV2 -> BasicV2 -> Bool #

(/=) :: BasicV2 -> BasicV2 -> Bool #

type Rep BasicV2 Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

type Rep BasicV2 = D1 ('MetaData "BasicV2" "Codec.Ktx2.DFD.Khronos.BasicV2" "ktx-codec-0.0.2.1-AFX5voQ2mUt7MGimSGTUau" 'False) (C1 ('MetaCons "BasicV2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "colorModel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "colorPrimaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8)) :*: (S1 ('MetaSel ('Just "transferFunction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8))) :*: ((S1 ('MetaSel ('Just "texelBlockDimension0") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "texelBlockDimension1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8)) :*: (S1 ('MetaSel ('Just "texelBlockDimension2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "texelBlockDimension3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8)))) :*: (((S1 ('MetaSel ('Just "bytesPlane0") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "bytesPlane1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8)) :*: (S1 ('MetaSel ('Just "bytesPlane2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "bytesPlane3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8))) :*: ((S1 ('MetaSel ('Just "bytesPlane4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "bytesPlane5") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8)) :*: (S1 ('MetaSel ('Just "bytesPlane6") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: (S1 ('MetaSel ('Just "bytesPlane7") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "samples") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector Sample))))))))

data Sample Source #

Instances

Instances details
Generic Sample Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Associated Types

type Rep Sample :: Type -> Type #

Methods

from :: Sample -> Rep Sample x #

to :: Rep Sample x -> Sample #

Show Sample Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Binary Sample Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Methods

put :: Sample -> Put #

get :: Get Sample #

putList :: [Sample] -> Put #

Eq Sample Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Methods

(==) :: Sample -> Sample -> Bool #

(/=) :: Sample -> Sample -> Bool #

type Rep Sample Source # 
Instance details

Defined in Codec.Ktx2.DFD.Khronos.BasicV2

Constructors

Patterns

Compressed formats

Color primaries

Transfer functions

Flags

Samples

pattern KHR_DF_SAMPLE_DATATYPE_FLOAT :: (Eq a, Num a) => a Source #