Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXDescriptorSet

GFX 描述符集组。

Hierarchy

Index

Constructors

constructor

Properties

Protected _buffers

_buffers: GFXBuffer[] = []

Protected _device

_device: GFXDevice

Protected _gfxType

_gfxType: GFXObjectType = GFXObjectType.UNKNOWN

Protected _isDirty

_isDirty: boolean = false

Protected _layout

_layout: GFXDescriptorSetLayout | null = null

Protected _samplers

_samplers: GFXSampler[] = []

Protected _textures

_textures: GFXTexture[] = []

Accessors

gfxType

layout

Methods

bindBuffer

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

    Parameters

    • binding: number

      The target binding.

    • buffer: GFXBuffer

      The buffer to be bound.

    • Default value index: number = 0

    Returns void

bindSampler

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

    Parameters

    • binding: number

      The target binding.

    • sampler: GFXSampler

      The sampler to be bound.

    • Default value index: number = 0

    Returns void

bindTexture

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

    Parameters

    • binding: number

      The target binding.

    • texture: GFXTexture

      The texture to be bound.

    • Default value index: number = 0

    Returns void

Abstract destroy

  • destroy(): void

getBuffer

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

getSampler

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

getTexture

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

Abstract initialize

Abstract update

  • update(): void

Generated using TypeDoc