Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Sampler

Index

Constructors

constructor

Properties

Private _addressMode

_addressMode: ISamplerAdressModeOptions = null

Private _filterMode

_filterMode: SAMPLER_FILTER_MODE = SAMPLER_FILTER_MODE.NONE

Private _name

_name: string = null

Private _resource

_resource: GPUSampler = null

Methods

create

  • create(renderer: Renderer, descriptor: GPUSamplerDescriptor): void
  • Create the GPU resource of the sampler

    Parameters

    • renderer: Renderer

      Renderer instance

    • descriptor: GPUSamplerDescriptor

      The descriptor used to create the sampler

    Returns void

destroy

  • destroy(): void

getAddressMode

getFilterMode

getName

  • getName(): string

getResource

  • getResource(): GPUSampler

setName

  • setName(value: string): void
  • Update the sampler name

    Parameters

    • value: string

      The new sampler name

    Returns void

Generated using TypeDoc