SourceTexture
SourceTexture is texture which contains cpu data.
Hierarchy
- TextureV2
- SourceTexture
Constructors
constructor
-
new SourceTexture(
dimension: TextureDimension,
viewDimension: TextureViewDimension,
format: TextureFormat,
width: number,
height: number,
depthOrArrayLayers: number,
mipmaps: boolean,
autoGenerateMipmap: boolean,
): SourceTextureParameters
- dimension: TextureDimension
- viewDimension: TextureViewDimension
- format: TextureFormat
- width: number
- height: number
- depthOrArrayLayers: number
- mipmaps: boolean
- autoGenerateMipmap: boolean
Returns SourceTexture
Overrides TextureV2.constructor
Properties
Readonlyuser Data
Inherited from TextureV2.userData
_ uuid
Inherited from TextureV2._uuid
uuid
Inherited from TextureV2.uuid
_ listeners
Inherited from TextureV2._listeners
Readonlyauto Generate Mipmap
name
Inherited from TextureV2.name
Readonlysampler Descriptor
Inherited from TextureV2.samplerDescriptor
Readonlystorage Descriptor
Inherited from TextureV2.storageDescriptor
is Mipmap Disabled
Inherited from TextureV2.isMipmapDisabled
Readonlyformat
Inherited from TextureV2.format
Readonlywidth
Inherited from TextureV2.width
Readonlyheight
Inherited from TextureV2.height
Readonlydepth Or Array Layers
Inherited from TextureV2.depthOrArrayLayers
Readonlysample Count
Inherited from TextureV2.sampleCount
Readonlylevels
Inherited from TextureV2.levels
Readonlymipmaps
Inherited from TextureV2.mipmaps
Readonlybyte Size
Inherited from TextureV2.byteSize
Accessors
business Tag
-
get businessTag(): string
Returns string
Inherited from TextureV2.businessTag
-
set businessTag(v: string): void
Parameters
- v: string
Returns void
Inherited from TextureV2.businessTag
Methods
mark Business Tag
-
Parameters
- v: string
Returns this
Inherited from TextureV2.markBusinessTag
is Destroyed
-
Returns boolean
Inherited from TextureV2.isDestroyed
validate
-
Returns void
Inherited from TextureV2.validate
destroy All Resources Owned
-
Returns void
Inherited from TextureV2.destroyAllResourcesOwned
free All Gpu Resource Owned
-
Returns void
Inherited from TextureV2.freeAllGpuResourceOwned
on
once
has
off
emit
-
Active the event and call the registered listener.
Parameters
- type: EventType<never>
Returns void
Inherited from TextureV2.emit
clear All Listeners
-
Removes all listeners from listening list.
Returns void
Inherited from TextureV2.clearAllListeners
get Level Layer Source
-
getLevelLayerSource(
level: number,
layer?: number,
):
| Float32Array<ArrayBufferLike>
| OffscreenCanvas
| ImageBitmap
| Float64Array<ArrayBufferLike>
| Int8Array<ArrayBufferLike>
| Uint8Array<ArrayBufferLike>
| Uint8ClampedArray<ArrayBufferLike>
| Int16Array<ArrayBufferLike>
| Uint16Array<ArrayBufferLike>
| Int32Array<ArrayBufferLike>
| Uint32Array<ArrayBufferLike>
| HTMLCanvasElement
| HTMLImageElement
| HTMLVideoElement
| ImageData
| undefinedParameters
- level: number
- layer: number
Returns
| Float32Array<ArrayBufferLike>
| OffscreenCanvas
| ImageBitmap
| Float64Array<ArrayBufferLike>
| Int8Array<ArrayBufferLike>
| Uint8Array<ArrayBufferLike>
| Uint8ClampedArray<ArrayBufferLike>
| Int16Array<ArrayBufferLike>
| Uint16Array<ArrayBufferLike>
| Int32Array<ArrayBufferLike>
| Uint32Array<ArrayBufferLike>
| HTMLCanvasElement
| HTMLImageElement
| HTMLVideoElement
| ImageData
| undefined
config Sampler
-
Parameters
- visitor: (s: SamplerDescriptor) => any
Returns this
Overrides TextureV2.configSampler
set Level Data
-
Parameters
- data: TypeArray
- level: number
Returns this
set Level Layer Data
-
Parameters
- data: LayerSource
- level: number
- layer: number
Returns this
destroy
-
Returns void
Inherited from TextureV2.destroy
sync Base
-
Returns void
Inherited from TextureV2.syncBase
get UUID
-
Returns string
Inherited from TextureV2.getUUID
disable Auto Mipmap
-
Returns this
Inherited from TextureV2.disableAutoMipmap
copy Base Info
-
Parameters
- other: Texture
Returns this
Inherited from TextureV2.copyBaseInfo
config As Data Texture
-
Returns this
Inherited from TextureV2.configAsDataTexture
config Sampler Repeat
-
Returns this
Inherited from TextureV2.configSamplerRepeat
config Trilinear
-
Returns this
Inherited from TextureV2.configTrilinear
config Double Linear
-
Returns this
Inherited from TextureV2.configDoubleLinear
config Storage
-
Parameters
- visitor: (t: TextureStorageDescriptor) => any
Returns this
Inherited from TextureV2.configStorage
free GPU
-
Returns void
Inherited from TextureV2.freeGPU
serialize
-
Parameters
- ctx: Serializer<Texture>
Returns void
Inherited from TextureV2.serialize
deserialize
-
Parameters
- ctx: Deserializer
Returns void
Inherited from TextureV2.deserialize
SourceTexture is texture which contains cpu data.