Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following tables list the members exposed by the GraphicsDevice type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
GraphicsDevice | Creates a new instance of GraphicsDevice |
Public Properties
Name | Description | |
---|---|---|
![]() |
ClipPlanes | Retrieves the clipping planes of the current GraphicsDevice. |
![]() |
CreationParameters | Retrieves the creation parameters of the GraphicsDevice. |
![]() |
DepthStencilBuffer | Gets or sets the depth stencil surface of this GraphicsDevice. |
![]() |
DisplayMode | Retrieves the display mode's spatial resolution, color resolution, and refresh frequency. |
![]() |
DriverLevel | Returns the driver level. |
![]() |
GraphicsDeviceCapabilities | Gets the capabilities of the graphics device. |
![]() |
GraphicsDeviceStatus | Retrieves the status of the device |
![]() |
Indices | Gets or sets index data. |
![]() |
IsDisposed | Gets a value that indicates whether the object is disposed. |
![]() |
PixelShader | Gets or sets the current pixel shader. |
![]() |
PresentationParameters | Gets the presentation parameters associated with this graphics device. |
![]() |
RasterStatus | Retrieves information that describes the raster of the monitor on which the swap chain is presented. |
![]() |
RenderState | Retrieves a render-state value for a GraphicsDevice. |
![]() |
SamplerStates | Retrieves a collection of SamplerState objects for the current GraphicsDevice. |
![]() |
ScissorRectangle | Gets or sets the rectangle used for scissor testing. |
![]() |
SoftwareVertexProcessing | Gets or sets the vertex processing mode. |
![]() |
Textures | Returns the collection of textures that have been assigned to the texture stages of the device. |
![]() |
VertexDeclaration | Gets or sets a vertex shader declaration. |
![]() |
VertexSamplerStates | Gets the collection of vertex sampler states. |
![]() |
VertexShader | Gets or sets the current vertex shader. |
![]() |
VertexTextures | Gets the collection of vertex textures that support texture lookup in the vertex shader using the texldl - vs texture load statement. The vertex engine contains four texture sampler stages. |
![]() |
Vertices | Gets the vertex stream collection. |
![]() |
Viewport | Gets or sets a viewport identifying the portion of the render target to receive draw calls. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Clear | Overloaded. Clears the viewport depth buffer, and erases the stencil buffer. |
![]() |
Dispose | Overloaded. Immediately releases the unmanaged resources used by this object. |
![]() |
DrawIndexedPrimitives | Renders the specified geometric primitive, based on indexing into an array of vertices. |
![]() |
DrawPrimitives | Renders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams. |
![]() |
DrawUserIndexedPrimitives | Overloaded. Renders the specified geometric primitive with data specified by the user. |
![]() |
DrawUserPrimitives | Renders the given geometric primitive with data specified by the user. |
![]() |
Equals | Overloaded. Returns a value that indicates whether the current instance is equal to a specified object. |
![]() |
EvictManagedResources | Evicts all managed resources, including Microsoft Direct3D resources and those that are driver managed. |
![]() |
GetGammaRamp | Gets the gamma correction ramp. |
![]() |
GetHashCode | Gets the hash code for this instance. |
![]() |
GetPixelShaderBooleanConstant | Gets an array of Boolean values from the pixel shader constant Boolean registers. |
![]() |
GetPixelShaderInt32Constant | Gets an array of Int32 values from the pixel shader constant integer registers. |
![]() |
GetPixelShaderMatrixArrayConstant | Gets an array of Matrix values from the pixel shader constant float registers. |
![]() |
GetPixelShaderMatrixConstant | Gets a Matrix value from the pixel shader constant float registers. |
![]() |
GetPixelShaderQuaternionArrayConstant | Gets an array of Quaternion values from the pixel shader constant float registers. |
![]() |
GetPixelShaderQuaternionConstant | Gets a Quaternion value from the pixel shader constant float registers. |
![]() |
GetPixelShaderSingleConstant | Gets an array of Single values from the pixel shader constant float registers. |
![]() |
GetPixelShaderVector2ArrayConstant | Gets an array of Vector2 values from the pixel shader constant float registers. |
![]() |
GetPixelShaderVector2Constant | Gets a Vector2 value from the pixel shader constant float registers. |
![]() |
GetPixelShaderVector3ArrayConstant | Gets an array of Vector3 values from the pixel shader constant float registers. |
![]() |
GetPixelShaderVector3Constant | Gets a Vector3 value from the pixel shader constant float registers. |
![]() |
GetPixelShaderVector4ArrayConstant | Gets an array of Vector4 values from the pixel shader constant float registers. |
![]() |
GetPixelShaderVector4Constant | Gets a Vector4 value from the pixel shader constant float registers. |
![]() |
GetRenderTarget | Gets a render target surface. |
![]() |
GetType | (Inherited from Object.) |
![]() |
GetVertexShaderBooleanConstant | Gets an array of Boolean values from the vertex shader constant Boolean registers. |
![]() |
GetVertexShaderInt32Constant | Gets an array of Int32 values from the vertex shader constant integer registers. |
![]() |
GetVertexShaderMatrixArrayConstant | Gets an array of Matrix values from the vertex shader constant float registers. |
![]() |
GetVertexShaderMatrixConstant | Gets a Matrix value from the vertex shader constant float registers. |
![]() |
GetVertexShaderQuaternionArrayConstant | Gets an array of Quaternion values from the vertex shader constant float registers. |
![]() |
GetVertexShaderQuaternionConstant | Gets a Quaternion value from the vertex shader constant float registers. |
![]() |
GetVertexShaderSingleConstant | Gets an array of Single values from the vertex shader constant float registers. |
![]() |
GetVertexShaderVector2ArrayConstant | Gets an array of Vector2 values from the vertex shader constant float registers. |
![]() |
GetVertexShaderVector2Constant | Gets a Vector2 value from the vertex shader constant float registers. |
![]() |
GetVertexShaderVector3ArrayConstant | Gets an array of Vector3 values from the vertex shader constant float registers. |
![]() |
GetVertexShaderVector3Constant | Gets a Vector3 value from the vertex shader constant float registers. |
![]() |
GetVertexShaderVector4ArrayConstant | Gets an array of Vector4 values from the vertex shader constant float registers. |
![]() |
GetVertexShaderVector4Constant | Gets a Vector4 value from the vertex shader constant float registers. |
![]() ![]() |
op_Equality | Compares two objects to determine whether they are the same. |
![]() ![]() |
op_Inequality | Compares two objects to determine whether they are different. |
![]() |
Present | Overloaded. Presents the display with the contents of the next buffer in the sequence of back buffers owned by the GraphicsDevice. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
Reset | Overloaded. Resets the presentation parameters for the current GraphicsDevice. |
![]() |
ResolveBackBuffer | Overloaded. Copies the current back buffer contents to a texture. |
![]() |
ResolveRenderTarget | Signifies that the device has finished drawing to a render target and prepares the render target for a call to RenderTarget2D.GetTexture or RenderTargetCube.GetTexture. |
![]() |
SetGammaRamp | Sets the gamma correction ramp. |
![]() |
SetPixelShaderConstant | Overloaded. Sets a pixel shader constant. |
![]() |
SetRenderTarget | Overloaded. Sets a new color buffer for a GraphicsDevice. |
![]() |
SetVertexShaderConstant | Overloaded. Sets a vertex shader constant. |
![]() |
ToString | Retrieves a string representation of this object. |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
raise_DeviceLost | Occurs when a GraphicsDevice is about to be lost (for example, immediately before a reset). |
![]() |
raise_DeviceReset | Occurs after a GraphicsDevice is reset, allowing an application to re-create all resources. |
![]() |
raise_DeviceResetting | Occurs when a GraphicsDevice is resetting |
![]() |
raise_Disposing | Raises the Disposing event when called from within a derived class. |
![]() |
raise_ResourceCreated | Occurs when ResourceCreated is called. |
![]() |
raise_ResourceDestroyed | Occurs when ResourceDestroyed is called. |
Public Events
Name | Description | |
---|---|---|
![]() |
DeviceLost | Occurs when a GraphicsDevice is about to be lost (for example, immediately before a reset). |
![]() |
DeviceReset | Occurs after a GraphicsDevice is reset, allowing an application to recreate all resources. |
![]() |
DeviceResetting | Occurs when a GraphicsDevice is resetting, allowing the application to cancel the default handling of the reset. |
![]() |
Disposing | Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime. |
![]() |
ResourceCreated | Occurs when a resource is created. |
![]() |
ResourceDestroyed | Occurs when a resource is destroyed. |
See Also
Reference
GraphicsDevice Class
Microsoft.Xna.Framework.Graphics Namespace