../libs/ddx_ktx/ddx_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
KtxPart = object
  width*, height*: int32
  layer*, face*, mip_level*: int32
  data*: pointer
  len*: int
  row_len*: int
  Source   Edit

Procs

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