Documentation / device / PBTextureTypeInfo
Class: PBTextureTypeInfo
Defined in: libs/device/src/builder/types.ts:1587
The texture type info
Extends
Constructors
Constructor
new PBTextureTypeInfo(
textureType,texelFormat?,readable?,writable?):PBTextureTypeInfo
Defined in: libs/device/src/builder/types.ts:1588
Parameters
textureType
texelFormat?
readable?
boolean
writable?
boolean
Returns
PBTextureTypeInfo
Overrides
PBTypeInfo<TextureTypeDetail>.constructor
Accessors
typeId
Get Signature
get typeId():
string
Defined in: libs/device/src/builder/types.ts:589
Get unique id for this type
Returns
string
Inherited from
textureType
Get Signature
get textureType():
PBTextureType
Defined in: libs/device/src/builder/types.ts:1607
Get the texture type
Returns
storageTexelFormat
Get Signature
get storageTexelFormat():
TextureFormat
Defined in: libs/device/src/builder/types.ts:1611
Get texture format if this is a storage texture
Returns
readable
Get Signature
get readable():
boolean
Defined in: libs/device/src/builder/types.ts:1615
Returns true if this is a readable storage texture type
Returns
boolean
Set Signature
set readable(
val):void
Defined in: libs/device/src/builder/types.ts:1618
Parameters
val
boolean
Returns
void
writable
Get Signature
get writable():
boolean
Defined in: libs/device/src/builder/types.ts:1622
Returns true if this is a writable storage texture type
Returns
boolean
Set Signature
set writable(
val):void
Defined in: libs/device/src/builder/types.ts:1625
Parameters
val
boolean
Returns
void
Methods
isVoidType()
isVoidType():
this is PBVoidTypeInfo
Defined in: libs/device/src/builder/types.ts:596
returns true if this is a void type
Returns
this is PBVoidTypeInfo
Inherited from
isAnyType()
isAnyType():
this is PBAnyTypeInfo
Defined in: libs/device/src/builder/types.ts:600
returns true if this is an any type
Returns
this is PBAnyTypeInfo
Inherited from
isPrimitiveType()
isPrimitiveType():
this is PBPrimitiveTypeInfo
Defined in: libs/device/src/builder/types.ts:604
returns true if this is a primitive type
Returns
this is PBPrimitiveTypeInfo
Inherited from
haveAtomicMembers()
haveAtomicMembers():
boolean
Defined in: libs/device/src/builder/types.ts:608
Wether this type have atomic members
Returns
boolean
Inherited from
haveF16Members()
haveF16Members():
boolean
Defined in: libs/device/src/builder/types.ts:612
Whether this type contains f16 scalar or vector types
Returns
boolean
Inherited from
isStructType()
isStructType():
this is PBStructTypeInfo
Defined in: libs/device/src/builder/types.ts:616
returns true if this is a struct type
Returns
this is PBStructTypeInfo
Inherited from
isArrayType()
isArrayType():
this is PBArrayTypeInfo
Defined in: libs/device/src/builder/types.ts:620
returns true if this is an array type
Returns
this is PBArrayTypeInfo
Inherited from
isPointerType()
isPointerType():
this is PBPointerTypeInfo
Defined in: libs/device/src/builder/types.ts:624
returns true if this is a pointer type
Returns
this is PBPointerTypeInfo
Inherited from
isAtomicI32()
isAtomicI32():
this is PBAtomicI32TypeInfo
Defined in: libs/device/src/builder/types.ts:628
returns true if this is an atomic int type
Returns
this is PBAtomicI32TypeInfo
Inherited from
isAtomicU32()
isAtomicU32():
this is PBAtomicU32TypeInfo
Defined in: libs/device/src/builder/types.ts:632
returns true if this is an atomic uint type
Returns
this is PBAtomicU32TypeInfo
Inherited from
isSamplerType()
isSamplerType():
this is PBSamplerTypeInfo
Defined in: libs/device/src/builder/types.ts:636
returns true if this is a sampler type
Returns
this is PBSamplerTypeInfo
Inherited from
isCompatibleType()
isCompatibleType(
other):boolean
Defined in: libs/device/src/builder/types.ts:664
Check whether a given type is compatible with this type
Parameters
other
The type to be checked
Returns
boolean
true if the given type is compatible with this type, othewise false
Inherited from
is2DTexture()
is2DTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1637
Returns true if this is a 2D texture type
Returns
boolean
is3DTexture()
is3DTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1641
Returns true if this is a 3D texture type
Returns
boolean
isCubeTexture()
isCubeTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1645
Returns true if this is a cube texture type
Returns
boolean
isArrayTexture()
isArrayTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1649
Returns true if this is an array texture type
Returns
boolean
isStorageTexture()
isStorageTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1653
Returns true if this is a storage texture type
Returns
boolean
isDepthTexture()
isDepthTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1657
Return s true if this is a depth texture type
Returns
boolean
isMultisampledTexture()
isMultisampledTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1661
Returns true if this is a multisampled texture type
Returns
boolean
isExternalTexture()
isExternalTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1665
Returns true if this is an external texture type
Returns
boolean
isIntTexture()
isIntTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1669
Returns true if the texture format is of type integer
Returns
boolean
isUIntTexture()
isUIntTexture():
boolean
Defined in: libs/device/src/builder/types.ts:1673
Returns true if the texture format is of type unsigned integer
Returns
boolean
toBufferLayout()
toBufferLayout(
_offset):any
Defined in: libs/device/src/builder/types.ts:1702
Creates a buffer layout from this type
Parameters
_offset
number
Byte offset of the layout
Returns
any
The created buffer layout