// Generated from WebIDL - DO NOT EDIT
// Source: @webref/idl/WEBGL_compressed_texture_s3tc_srgb

///|
/// WEBGL_compressed_texture_s3tc_srgb interface
pub type WEBGL_compressed_texture_s3tc_srgb

///|
pub extern "js" fn WEBGL_compressed_texture_s3tc_srgb::to_js_value(
  self : WEBGL_compressed_texture_s3tc_srgb,
) -> JsValue =
  #| (self) => self

///|
/// Cast JsValue to WEBGL_compressed_texture_s3tc_srgb (unchecked)
pub extern "js" fn WEBGL_compressed_texture_s3tc_srgb::from_js_value(
  v : JsValue,
) -> WEBGL_compressed_texture_s3tc_srgb =
  #| (v) => v

///|
/// Safely cast JsValue to WEBGL_compressed_texture_s3tc_srgb (checked with instanceof)
pub extern "js" fn WEBGL_compressed_texture_s3tc_srgb::from_js_value_opt(
  v : JsValue,
) -> WEBGL_compressed_texture_s3tc_srgb? =
  #| (v) => (v instanceof WEBGL_compressed_texture_s3tc_srgb) ? { $tag: 1, _0: v } : { $tag: 0 }

///|
/// Safely cast JsValue to WEBGL_compressed_texture_s3tc_srgb (checked with instanceof)
pub extern "js" fn JsValue::as_webgl_compressed_texture_s3tc_srgb(
  self : JsValue,
) -> WEBGL_compressed_texture_s3tc_srgb? =
  #| (self) => (self instanceof WEBGL_compressed_texture_s3tc_srgb) ? { $tag: 1, _0: self } : { $tag: 0 }

///|
/// Cast JsValue to WEBGL_compressed_texture_s3tc_srgb (unchecked)
pub extern "js" fn JsValue::to_webgl_compressed_texture_s3tc_srgb(
  self : JsValue,
) -> WEBGL_compressed_texture_s3tc_srgb =
  #| (self) => self

// WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_S3TC_DXT1_EXT

///|
pub let webgl_compressed_texture_s3tc_srgb_compressed_srgb_s3tc_dxt1_ext : Int = 0x8C4C

// WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT

///|
pub let webgl_compressed_texture_s3tc_srgb_compressed_srgb_alpha_s3tc_dxt1_ext : Int = 0x8C4D

// WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT

///|
pub let webgl_compressed_texture_s3tc_srgb_compressed_srgb_alpha_s3tc_dxt3_ext : Int = 0x8C4E

// WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT

///|
pub let webgl_compressed_texture_s3tc_srgb_compressed_srgb_alpha_s3tc_dxt5_ext : Int = 0x8C4F