Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextureProps

Hierarchy

Index

Properties

width: number

The textures width in pixels.

height: number

The textures height in pixels.

context?: Context

Context override

defaultvalue

defaultContext

levels?: number

The amount of mipmap levels. Level 0 represents the original texture.

defaultvalue

1

How the data is stored in GPU memory.

defaultvalue

TextureStorageFormat.rgba8

clampLodToUploadedLevels?: boolean

Whether to clamp mipmap LOD to levels that have been uploaded, i.e. whether to show lower/higher res levels in place of empty ones.

defaultvalue

false

remarks

For this to have a visible effect, the texture needs to be sampled with TextureProps.minFilter set to any filter that takes mipmaps into account.

Also, the texture cannot be used with a Sampler.

minFilter?: TextureMinFilter

The texture minification filter.

defaultvalue

TextureMinFilter.linear

magFilter?: TextureMagFilter

The texture magnification filter.

defaultvalue

TextureMagFilter.linear

wrapS?: TextureWrap

Texture wrapping mode for the s/x coordinate.

defaultvalue

TextureWrap.clampToEdge

wrapT?: TextureWrap

Texture wrapping mode for the t/y coordinate.

defaultvalue

TextureWrap.clampToEdge

wrapR?: TextureWrap

Texture wrapping mode for the r/z coordinate.

defaultvalue

TextureWrap.clampToEdge

minLod?: number

The minimum level-of-detail.

defaultvalue

-1000

maxLod?: number

The maximum level-of-detail.

defaultvalue

1000

compareMode?: TextureCompareMode

The texture comparison mode.

defaultvalue

TextureCompareMode.none

compareFunc?: TextureCompareFunc

The texture comparison function.

defaultvalue

TextureCompareFunc.lessOrEqual

Generated using TypeDoc