Tesla Graphics Engine Documentation (January 2012)
SamplerState Class
TeslaTesla.GraphicsSamplerState
SamplerState object that controls how a texture is sampled.
Declaration Syntax
C#
public class SamplerState : RenderState
Members
All Members Constructors Methods Properties



Icon Member Description
SamplerState()()()()
Creates a new instance of SamplerState with default values.

SamplerState(IRenderSystemProvider)
Creates a new instance of SamplerState with default values.

AddressU
Gets or sets the addressing mode for the U coordinate. The default value is Clamp.

AddressV
Gets or sets the addressing mode for the V coordinate. The default value is Clamp.

AddressW
Gets or sets the addressing mode for the W coordinate. The default value is Clamp.

AnisotropicClamp
Gets the built-in state object where anisotropic filtering is used and UVW coordinates are clamped to [0, 1].

AnisotropicWrap
Gets the built-in state object where anisotropic filtering is used and UVW coordinates wrap.

BindRenderState()()()()
Binds the render state to the graphics pipeline. This is automatically called the first time the renderstate is applied or manually called to create the underlying implementation early.
(Overrides RenderState.BindRenderState()()()().)
Dispose()()()()
Dispose the resource.
(Inherited from GraphicsResource.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from GraphicsResource.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Filter
Gets or sets the filtering method used when sampling a texture. The default value is Point.

Finalize()()()()
Releases unmanaged resources and performs other cleanup operations before the SamplerState is reclaimed by garbage collection.
(Overrides GraphicsResource.Finalize()()()().)
GetHashCode()()()()
Returns a hash code for this instance.
(Overrides Object.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Implementation
Gets the API-specific implementation of this resource.
(Overrides GraphicsResource.Implementation.)
IsBound
Get if this render state has been bound to the pipeline.
(Overrides RenderState.IsBound.)
IsDisposed
Gets if the resource's implementation has been disposed.
(Inherited from GraphicsResource.)
LinearClamp
Gets the built-in state object where linear filtering is used and UVW coordinates are clamped to [0, 1].

LinearWrap
Gets the built-in state object where linear filtering is used and UVW coordinates wrap.

MaxAnisotropy
Gets the maximum anisotropy. The default value is four.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MipMapLevelOfDetailBias
Gets the mipmap LOD bias. The default value is zero.

Name
Get or sets the name of this resource.
(Inherited from GraphicsResource.)
PointClamp
Gets the built-in state object where point filtering is used and UVW coordinates are clamped to [0, 1]. This is the default state.

PointWrap
Gets the built-in state object where point filtering is used and UVW coordinates wrap.

Read(ISavableReader)
Deserializes the object and populates it from the input.
(Overrides RenderState.Read(ISavableReader).)
RenderStateKey
Gets the RenderStateKey that is used to compare this state to another state.
(Overrides RenderState.RenderStateKey.)
RenderSystem
Gets or protected sets the render system that created this resource.
(Inherited from GraphicsResource.)
ResourceID
Gets or sets the ResourceID of this resource. Can only be set once, usually by the renderer.
(Inherited from GraphicsResource.)
StateType
Get the enumeration describing this render state.
(Overrides RenderState.StateType.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Write(ISavableWriter)
Serializes the object and writes it to the output.
(Overrides RenderState.Write(ISavableWriter).)
Inheritance Hierarchy
Object
GraphicsResource
  RenderState
    SamplerState

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)