Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXDescriptorSet

GFX descriptor sets.

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
  • Bind buffer to the specified descriptor.

    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
  • Bind sampler to the specified descriptor.

    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
  • Bind texture to the specified descriptor.

    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