GPUSamplerDescriptor

  • label: USVString
  • addressModeU: GPUAddressMode= 'clamp-to-edge'

    GPUAddressMode

    'clamp-to-edge', 'repeat', 'mirror-repeat'
  • addressModeV: GPUAddressMode= 'clamp-to-edge'

    GPUAddressMode

    'clamp-to-edge', 'repeat', 'mirror-repeat'
  • addressModeW: GPUAddressMode= 'clamp-to-edge'

    GPUAddressMode

    'clamp-to-edge', 'repeat', 'mirror-repeat'
  • magFilter: GPUFilterMode= 'nearest'

    GPUFilterMode

    'nearest', 'linear'
  • minFilter: GPUFilterMode= 'nearest'

    GPUFilterMode

    'nearest', 'linear'
  • mipmapFilter: GPUMipmapFilterMode= 'nearest'

    GPUMipmapFilterMode

    'nearest', 'linear'
  • lodMinClamp: float= 0
  • lodMaxClamp: float= 32
  • compare: GPUCompareFunction

    GPUCompareFunction

    'never', 'less', 'equal', 'less-equal', 'greater', 'not-equal', 'greater-equal', 'always'
  • maxAnisotropy: unsigned short= 1