Skip to content

Class: TextureCubeFaceData

Constructors

Properties

Methods

Constructors

constructor

new TextureCubeFaceData(texture): TextureCubeFaceData

Parameters

NameType
textureTexture

Returns

TextureCubeFaceData

Defined in

src/textures/TextureCubeFaceData.ts:9

Properties

faceTextureRef

faceTextureRef: Object

Index signature

▪ [key: string]: { t: GPUTexture ; v: GPUTextureView }

Defined in

src/textures/TextureCubeFaceData.ts:6

Methods

uploadTexture

uploadTexture(mip, texture): this

fill this texture by a texture2D, which is a 360 panorama image assign mipmap level

Parameters

NameTypeDescription
mipnumbermipmap level
textureTexturea panorama image

Returns

this

Defined in

src/textures/TextureCubeFaceData.ts:22


getGpuSource

getGpuSource(mip): Object

get GPU texture raw data

Parameters

NameTypeDescription
mipnumbermipmap level

Returns

Object

GPU texture raw data, including t: GPUTexture and v: GPUTextureView

NameType
tGPUTexture
vGPUTextureView

Defined in

src/textures/TextureCubeFaceData.ts:46