Class: TextureCubeFaceData
Constructors
Properties
Methods
Constructors
constructor
• new TextureCubeFaceData(texture
): TextureCubeFaceData
Parameters
Name | Type |
---|---|
texture | Texture |
Returns
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
Name | Type | Description |
---|---|---|
mip | number | mipmap level |
texture | Texture | a panorama image |
Returns
this
Defined in
src/textures/TextureCubeFaceData.ts:22
getGpuSource
▸ getGpuSource(mip
): Object
get GPU texture raw data
Parameters
Name | Type | Description |
---|---|---|
mip | number | mipmap level |
Returns
Object
GPU texture raw data, including t: GPUTexture and v: GPUTextureView
Name | Type |
---|---|
t | GPUTexture |
v | GPUTextureView |