Cocos Creator
Manual
API Ref
Cocos2d-x
Manual
API Ref
Version: 3.2
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.1
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
gfx
Sampler
Class Sampler
GFX sampler.
Hierarchy
Obj
Sampler
Index
Constructors
constructor
Properties
_addressU
_addressV
_addressW
_border
Color
_cmp
Func
_device
_gfx
Type
_mag
Filter
_max
Anisotropy
_maxLOD
_min
Filter
_minLOD
_mip
Filter
_mipLODBias
Accessors
addressU
addressV
addressW
border
Color
cmp
Func
gfx
Type
mag
Filter
max
Anisotropy
maxLOD
min
Filter
minLOD
mip
Filter
mipLODBias
Methods
destroy
initialize
Constructors
constructor
new
Sampler
(
device
:
Device
)
:
Sampler
Parameters
device:
Device
Returns
Sampler
Properties
Protected
_addressU
_addressU
:
Address
= Address.WRAP
Protected
_addressV
_addressV
:
Address
= Address.WRAP
Protected
_addressW
_addressW
:
Address
= Address.WRAP
Protected
_border
Color
_border
Color
:
Color
= new Color()
Protected
_cmp
Func
_cmp
Func
:
ComparisonFunc
= ComparisonFunc.NEVER
Protected
_device
_device
:
Device
Protected
_gfx
Type
_gfx
Type
:
ObjectType
= ObjectType.UNKNOWN
Protected
_mag
Filter
_mag
Filter
:
Filter
= Filter.LINEAR
Protected
_max
Anisotropy
_max
Anisotropy
:
number
= 16
Protected
_maxLOD
_maxLOD
:
number
= 0
Protected
_min
Filter
_min
Filter
:
Filter
= Filter.LINEAR
Protected
_minLOD
_minLOD
:
number
= 0
Protected
_mip
Filter
_mip
Filter
:
Filter
= Filter.NONE
Protected
_mipLODBias
_mipLODBias
:
number
= 0
Accessors
addressU
get
addressU
(
)
:
Address
Returns
Address
addressV
get
addressV
(
)
:
Address
Returns
Address
addressW
get
addressW
(
)
:
Address
Returns
Address
border
Color
get
borderColor
(
)
:
Color
Returns
Color
cmp
Func
get
cmpFunc
(
)
:
ComparisonFunc
Returns
ComparisonFunc
gfx
Type
get
gfxType
(
)
:
ObjectType
Returns
ObjectType
mag
Filter
get
magFilter
(
)
:
Filter
Returns
Filter
max
Anisotropy
get
maxAnisotropy
(
)
:
number
Returns
number
maxLOD
get
maxLOD
(
)
:
number
Returns
number
min
Filter
get
minFilter
(
)
:
Filter
Returns
Filter
minLOD
get
minLOD
(
)
:
number
Returns
number
mip
Filter
get
mipFilter
(
)
:
Filter
Returns
Filter
mipLODBias
get
mipLODBias
(
)
:
number
Returns
number
Methods
Abstract
destroy
destroy
(
)
:
void
Returns
void
Abstract
initialize
initialize
(
info
:
SamplerInfo
)
:
boolean
Parameters
info:
SamplerInfo
Returns
boolean
Globals
gfx
Sampler
constructor
_addressU
_addressV
_addressW
_border
Color
_cmp
Func
_device
_gfx
Type
_mag
Filter
_max
Anisotropy
_maxLOD
_min
Filter
_minLOD
_mip
Filter
_mipLODBias
addressU
addressV
addressW
border
Color
cmp
Func
gfx
Type
mag
Filter
max
Anisotropy
maxLOD
min
Filter
minLOD
mip
Filter
mipLODBias
destroy
initialize
Generated using
TypeDoc
GFX sampler.