Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescriptorSet

GFX 描述符集组。

Hierarchy

  • Obj
    • DescriptorSet

Index

Constructors

constructor

Properties

Protected _buffers

_buffers: Buffer[] = []

Protected _device

_device: Device

Protected _gfxType

_gfxType: ObjectType = ObjectType.UNKNOWN

Protected _isDirty

_isDirty: boolean = false

Protected _layout

_layout: DescriptorSetLayout | null = null

Protected _samplers

_samplers: Sampler[] = []

Protected _textures

_textures: Texture[] = []

Accessors

gfxType

layout

Methods

bindBuffer

  • bindBuffer(binding: number, buffer: Buffer, index?: number): void
  • 在指定的描述符位置上绑定缓冲。

    Parameters

    • binding: number

      The target binding.

    • buffer: Buffer

      The buffer to be bound.

    • Default value index: number = 0

    Returns void

bindSampler

  • bindSampler(binding: number, sampler: Sampler, index?: number): void
  • 在指定的描述符位置上绑定采样器。

    Parameters

    • binding: number

      The target binding.

    • sampler: Sampler

      The sampler to be bound.

    • Default value index: number = 0

    Returns void

bindTexture

  • bindTexture(binding: number, texture: Texture, index?: number): void
  • 在指定的描述符位置上绑定纹理。

    Parameters

    • binding: number

      The target binding.

    • texture: Texture

      The texture to be bound.

    • Default value index: number = 0

    Returns void

Abstract destroy

  • destroy(): void

getBuffer

  • getBuffer(binding: number, index?: number): Buffer

getSampler

  • getSampler(binding: number, index?: number): Sampler

getTexture

  • getTexture(binding: number, index?: number): Texture

Abstract initialize

Abstract update

  • update(): void

Generated using TypeDoc