../libs/dds_ktx/dds_ktx

  Source   Edit

Types

KtxInfo = object
  width*, height*, depth*: int32
  num_layers*, num_mipmaps*: int32
  is_cubemap*, has_alpha*, is_sRGB*: bool
  is_bc*, is_astc*: bool
  internal_format*: int32
  Source   Edit
KtxInfoParts = object
  info*: KtxInfo
  parts*: seq[KtxPart]
  Source   Edit
KtxPart = object
  width*, height*: int32
  layer*, face*, mip_level*: int32
  slice*: int32
  data*: pointer
  len*: int
  row_len*: int
  Source   Edit

Procs

func get_ASTC_internal_format(blk_size: (SomeInteger, SomeInteger);
                              is_sRGB: bool): int32
  Source   Edit
proc GetDdsKtxInfo(p: pointer; len: int; is_sRGB = false): Option[KtxInfo] {.
    ...raises: [], tags: [].}
  Source   Edit
proc ParseDdsKtx(p: pointer; len: int): seq[KtxPart] {....raises: [ValueError],
    tags: [].}
  Source   Edit