Export (0) Print
Expand All

GraphicsDevice Members

The following tables list the members exposed by the GraphicsDevice type.

NameDescription
Public MethodGraphicsDeviceCreates a new instance of GraphicsDevice

NameDescription
Public PropertyClipPlanesRetrieves the clipping planes of the current GraphicsDevice.
Public PropertyCreationParametersRetrieves the creation parameters of the GraphicsDevice.
Public PropertyDepthStencilBufferGets or sets the depth stencil surface of this GraphicsDevice.
Public PropertyDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
Public PropertyDriverLevelReturns the driver level.
Public PropertyGraphicsDeviceCapabilitiesGets the capabilities of the graphics device.
Public PropertyGraphicsDeviceStatusRetrieves the status of the device
Public PropertyIndicesGets or sets index data.
Public PropertyIsDisposedGets a value that indicates whether the object is disposed.
Public PropertyPixelShaderGets or sets the current pixel shader.
Public PropertyPresentationParametersGets the presentation parameters associated with this graphics device.
Public PropertyRasterStatusRetrieves information that describes the raster of the monitor on which the swap chain is presented.
Public PropertyRenderStateRetrieves a render-state value for a GraphicsDevice.
Public PropertySamplerStatesRetrieves a collection of SamplerState objects for the current GraphicsDevice.
Public PropertyScissorRectangleGets or sets the rectangle used for scissor testing.
Public PropertyTexturesReturns the collection of textures that have been assigned to the texture stages of the device.
Public PropertyVertexDeclarationGets or sets a vertex shader declaration.
Public PropertyVertexSamplerStatesGets the collection of vertex sampler states.
Public PropertyVertexShaderGets or sets the current vertex shader.
Public PropertyVertexTexturesGets 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.
Public PropertyVerticesGets the vertex stream collection.
Public PropertyViewportGets or sets a viewport identifying the portion of the render target to receive draw calls.

NameDescription
Public MethodClearOverloaded. Clears the viewport depth buffer, and erases the stencil buffer.
Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodDrawIndexedPrimitivesRenders the specified geometric primitive, based on indexing into an array of vertices.
Public MethodDrawPrimitivesRenders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams.
Public MethodDrawUserIndexedPrimitivesOverloaded. Renders the specified geometric primitive with data specified by the user.
Public MethodDrawUserPrimitivesRenders the given geometric primitive with data specified by the user.
Public MethodEquals (Inherited from Object.)
Public MethodEvictManagedResourcesEvicts all managed resources, including Microsoft Direct3D resources and those that are driver managed.
Public MethodGetGammaRampGets the gamma correction ramp.
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetPixelShaderBooleanConstantGets an array of Boolean values from the pixel shader constant Boolean registers.
Public MethodGetPixelShaderInt32Constant Gets an array of Int32 values from the pixel shader constant integer registers.
Public MethodGetPixelShaderMatrixArrayConstant Gets an array of Matrix values from the pixel shader constant float registers.
Public MethodGetPixelShaderMatrixConstant Gets a Matrix value from the pixel shader constant float registers.
Public MethodGetPixelShaderQuaternionArrayConstant Gets an array of Quaternion values from the pixel shader constant float registers.
Public MethodGetPixelShaderQuaternionConstant Gets a Quaternion value from the pixel shader constant float registers.
Public MethodGetPixelShaderSingleConstant Gets an array of Single values from the pixel shader constant float registers.
Public MethodGetPixelShaderVector2ArrayConstant Gets an array of Vector2 values from the pixel shader constant float registers.
Public MethodGetPixelShaderVector2Constant Gets a Vector2 value from the pixel shader constant float registers.
Public MethodGetPixelShaderVector3ArrayConstant Gets an array of Vector3 values from the pixel shader constant float registers.
Public MethodGetPixelShaderVector3Constant Gets a Vector3 value from the pixel shader constant float registers.
Public MethodGetPixelShaderVector4ArrayConstant Gets an array of Vector4 values from the pixel shader constant float registers.
Public MethodGetPixelShaderVector4Constant Gets a Vector4 value from the pixel shader constant float registers.
Public MethodGetRenderTargetGets a render target surface.
Public MethodGetType (Inherited from Object.)
Public MethodGetVertexShaderBooleanConstant Gets an array of Boolean values from the vertex shader constant Boolean registers.
Public MethodGetVertexShaderInt32Constant Gets an array of Int32 values from the vertex shader constant integer registers.
Public MethodGetVertexShaderMatrixArrayConstant Gets an array of Matrix values from the vertex shader constant float registers.
Public MethodGetVertexShaderMatrixConstant Gets a Matrix value from the vertex shader constant float registers.
Public MethodGetVertexShaderQuaternionArrayConstant Gets an array of Quaternion values from the vertex shader constant float registers.
Public MethodGetVertexShaderQuaternionConstant Gets a Quaternion value from the vertex shader constant float registers.
Public MethodGetVertexShaderSingleConstant Gets an array of Single values from the vertex shader constant float registers.
Public MethodGetVertexShaderVector2ArrayConstant Gets an array of Vector2 values from the vertex shader constant float registers.
Public MethodGetVertexShaderVector2Constant Gets a Vector2 value from the vertex shader constant float registers.
Public MethodGetVertexShaderVector3ArrayConstant Gets an array of Vector3 values from the vertex shader constant float registers.
Public MethodGetVertexShaderVector3Constant Gets a Vector3 value from the vertex shader constant float registers.
Public MethodGetVertexShaderVector4ArrayConstant Gets an array of Vector4 values from the vertex shader constant float registers.
Public MethodGetVertexShaderVector4Constant Gets a Vector4 value from the vertex shader constant float registers.
Public MethodPresentOverloaded. Presents the display with the contents of the next buffer in the sequence of back buffers owned by the GraphicsDevice.
Public MethodReferenceEquals (Inherited from Object.)
Public MethodResetOverloaded. Resets the presentation parameters for the current GraphicsDevice.
Public MethodResolveBackBufferOverloaded. Copies the current back buffer contents to a texture.
Public MethodSetGammaRampSets the gamma correction ramp.
Public MethodSetPixelShaderConstantOverloaded. Sets a pixel shader constant.
Public MethodSetRenderTargetOverloaded. Sets a new color buffer for a GraphicsDevice.
Public MethodSetVertexShaderConstantOverloaded. Sets a vertex shader constant.
Public MethodToStringRetrieves a string representation of this object.

NameDescription
Protected MethodFinalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected MethodMemberwiseClone (Inherited from Object.)
Protected Methodraise_DeviceLostOccurs when a GraphicsDevice is about to be lost (for example, immediately before a reset).
Protected Methodraise_DeviceResetOccurs after a GraphicsDevice is reset, allowing an application to re-create all resources.
Protected Methodraise_DeviceResettingOccurs when a GraphicsDevice is resetting
Protected Methodraise_Disposing Raises the Disposing event when called from within a derived class.
Protected Methodraise_ResourceCreated Occurs when ResourceCreated is called.
Protected Methodraise_ResourceDestroyed Occurs when ResourceDestroyed is called.

NameDescription
Public EventDeviceLostOccurs when a GraphicsDevice is about to be lost (for example, immediately before a reset).
Public EventDeviceResetOccurs after a GraphicsDevice is reset, allowing an application to recreate all resources.
Public EventDeviceResettingOccurs when a GraphicsDevice is resetting, allowing the application to cancel the default handling of the reset.
Public EventDisposing Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.
Public EventResourceCreatedOccurs when a resource is created.
Public EventResourceDestroyedOccurs when a resource is destroyed.

Community Additions

ADD
Show:
© 2014 Microsoft