Skip to content

Documentation / device / PBAnyTypeInfo

Class: PBAnyTypeInfo ​

Defined in: libs/device/src/builder/types.ts:710

The void type info

Extends ​

Constructors ​

Constructor ​

new PBAnyTypeInfo(): PBAnyTypeInfo

Defined in: libs/device/src/builder/types.ts:711

Returns ​

PBAnyTypeInfo

Overrides ​

PBTypeInfo<null>.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 ​

PBTypeInfo.typeId

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 ​

PBTypeInfo.isVoidType


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 ​

PBTypeInfo.isPrimitiveType


haveAtomicMembers() ​

haveAtomicMembers(): boolean

Defined in: libs/device/src/builder/types.ts:608

Wether this type have atomic members

Returns ​

boolean

Inherited from ​

PBTypeInfo.haveAtomicMembers


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 ​

PBTypeInfo.haveF16Members


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 ​

PBTypeInfo.isStructType


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 ​

PBTypeInfo.isArrayType


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 ​

PBTypeInfo.isPointerType


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 ​

PBTypeInfo.isAtomicI32


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 ​

PBTypeInfo.isAtomicU32


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 ​

PBTypeInfo.isSamplerType


isTextureType() ​

isTextureType(): this is PBTextureTypeInfo

Defined in: libs/device/src/builder/types.ts:640

returns true if this is a texture type

Returns ​

this is PBTextureTypeInfo

Inherited from ​

PBTypeInfo.isTextureType


isAnyType() ​

isAnyType(): this is PBAnyTypeInfo

Defined in: libs/device/src/builder/types.ts:715

returns true if this is an any type

Returns ​

this is PBAnyTypeInfo

Overrides ​

PBTypeInfo.isAnyType


toBufferLayout() ​

toBufferLayout(_offset): any

Defined in: libs/device/src/builder/types.ts:727

Creates a buffer layout from this type

Parameters ​

_offset ​

number

Byte offset of the layout

Returns ​

any

The created buffer layout

Overrides ​

PBTypeInfo.toBufferLayout


isCompatibleType() ​

isCompatibleType(_other): boolean

Defined in: libs/device/src/builder/types.ts:731

Check whether a given type is compatible with this type

Parameters ​

_other ​

PBTypeInfo<TypeDetailInfo>

The type to be checked

Returns ​

boolean

true if the given type is compatible with this type, othewise false

Overrides ​

PBTypeInfo.isCompatibleType

Released under the MIT License.