// Generated by scripts/generate.mjs from bindings/api.mjs. Do not edit.
///|
#external
pub type DataTexture
///|
#module("@mizchi/three-mbt/constructors")
pub extern "js" fn DataTexture::from_rgba(
data : Bytes,
width : Int,
height : Int,
) -> DataTexture = "dataTextureRGBA"
///|
#module("@mizchi/three-mbt/render-extra")
pub extern "js" fn DataTexture::from_rgba_float(
values : FixedArray[Double],
width : Int,
height : Int,
) -> DataTexture = "dataTextureFloat"
///|
pub fn DataTexture::as_texture(self : DataTexture) -> Texture = "%identity"
///|
pub extern "js" fn DataTexture::width(self : DataTexture) -> Int =
#| (self) => self.image.width
///|
pub extern "js" fn DataTexture::height(self : DataTexture) -> Int =
#| (self) => self.image.height