@simversus/yjvis • Docs
@simversus/yjvis / TextureInfo
Class: TextureInfo
纹理信息
Constructors
new TextureInfo()
new TextureInfo(
type
,usage
,format
,width
,height
,flags
,layerCount
,levelCount
,samples
,depth
,externalRes
,flipY
):TextureInfo
Parameters
• type: TextureType
= TextureType.TEX2D
• usage: TextureUsage
= TextureUsage.NONE
• format: Format
= Format.UNKNOWN
• width: number
= 0
• height: number
= 0
• flags: TextureFlags
= TextureFlags.NONE
• layerCount: number
= 1
• levelCount: number
= 1
• samples: SampleCount
= SampleCount.X1
• depth: number
= 1
• externalRes: number
= 0
• flipY: boolean
= false
Returns
Defined in
gfx/base/types.ts:809
Properties
depth
depth:
number
=1
Defined in
gfx/base/types.ts:819
externalRes
externalRes:
number
=0
Defined in
gfx/base/types.ts:820
flags
flags:
TextureFlags
=TextureFlags.NONE
Defined in
gfx/base/types.ts:815
flipY
flipY:
boolean
=false
Defined in
gfx/base/types.ts:821
format
format:
Format
=Format.UNKNOWN
Defined in
gfx/base/types.ts:812
height
height:
number
=0
Defined in
gfx/base/types.ts:814
layerCount
layerCount:
number
=1
Defined in
gfx/base/types.ts:816
levelCount
levelCount:
number
=1
Defined in
gfx/base/types.ts:817
samples
samples:
SampleCount
=SampleCount.X1
Defined in
gfx/base/types.ts:818
type
type:
TextureType
=TextureType.TEX2D
Defined in
gfx/base/types.ts:810
usage
usage:
TextureUsage
=TextureUsage.NONE
Defined in
gfx/base/types.ts:811
width
width:
number
=0
Defined in
gfx/base/types.ts:813