MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / has_alpha

Method has_alpha

python/basisu_py/transcoder.py:235–239  ·  view source on GitHub ↗

Return true if the KTX2 container has alpha.

(self, ktx2_handle: KTX2Handle)

Source from the content-addressed store, hash-verified

233 return self.ktx2_get_basis_tex_format(ktx2_handle.handle)
234
235 def has_alpha(self, ktx2_handle: KTX2Handle) -> bool:
236 """
237 Return true if the KTX2 container has alpha.
238 """
239 return bool(self.ktx2_has_alpha(ktx2_handle.handle))
240
241 # ---- Format flags ----
242 def is_hdr(self, ktx2_handle): return bool(self.ktx2_is_hdr(ktx2_handle.handle))

Callers 3

test_backendFunction · 0.95
dump_all_top_levelFunction · 0.45

Calls 1

ktx2_has_alphaMethod · 0.80

Tested by 1

test_backendFunction · 0.76