Applications use the methods of the Device to perform DrawPrimitive-based rendering, create resources,
work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
Unmanaged counterpart: IDirect3DDevice9
| C# |
public class Device : ComObject
| All Members | Constructors | Methods | Properties | ||
|
|
|
|
|||
| Icon | Member | Description |
|---|---|---|
|
|
Device(Direct3D, Int32, DeviceType, IntPtr, CreateFlags, array<PresentParameters>[]()[][]) |
Initializes a new instance of the Device class.
|
|
|
Device(IDirect3DDevice9*, ComObject, Boolean) |
Initializes a new instance of the Device class
|
|
|
Device(IntPtr) |
Initializes a new instance of the Device class
|
|
|
Device(IDirect3DDevice9*, ComObject) |
Initializes a new instance of the Device class
|
|
|
AvailableTextureMemory |
Gets an estimate of the amount of available texture memory.
|
|
|
BeginScene()()()() |
Begins a scene.
|
|
|
BeginStateBlock()()()() |
Signals Direct3D to begin recording a device-state block.
|
|
|
BindRenderTargetToVertexStream(R2VBSampler, Texture, Int32, Int32, VertexBuffer) |
Binds a render target to a vertex stream.
|
|
|
Capabilities |
Gets the capabilities of the rendering device.
|
|
|
Clear(ClearFlags, Int32, Single, Int32) |
Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer.
|
|
|
Clear(ClearFlags, Color4, Single, Int32) |
Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer.
|
|
|
Clear(ClearFlags, Int32, Single, Int32, array<Rectangle>[]()[][]) |
Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer.
|
|
|
Clear(ClearFlags, Color4, Single, Int32, array<Rectangle>[]()[][]) |
Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer.
|
|
|
ClipStatus |
Gets the current clip status.
|
|
|
ColorFill(Surface, Color4) |
Fills a rectangular area of a surface with the specified color.
|
|
|
ColorFill(Surface, Rectangle, Color4) |
Fills a rectangular area of a surface with the specified color.
|
|
|
ComPointer |
Gets an IntPtr to the underlying native COM interface.
(Inherited from ComObject.) |
|
|
CreationParameters |
Gets the parameters used to create the device.
|
|
|
CreationSource |
Gets a StackTrace to the location where the object was created.
(Inherited from ComObject.) |
|
|
CreationTime |
Gets the timestamp, in milliseconds, of the object'ss creation.
(Inherited from ComObject.) |
|
|
CurrentTexturePalette |
Gets or sets the index of the current texture palette.
|
|
|
DeletePatch(Int32) |
Frees a cached high-order patch.
|
|
|
DepthStencilSurface |
Gets or sets the current depth-stencil surface.
|
|
|
Direct3D |
Returns the instance of the Direct3D object that created this device.
|
|
|
Dispose(Boolean) | (Inherited from ComObject.) |
|
|
Dispose()()()() |
Releases all resources used by the ComObject.
(Inherited from ComObject.) |
|
|
Disposed |
Gets a value that indicates whether the object has been disposed.
(Inherited from ComObject.) |
|
|
DrawIndexedPrimitives(PrimitiveType, Int32, Int32, Int32, Int32, Int32) |
Renders the specified geometric primitive using data from the current input streams.
|
|
|
DrawIndexedUserPrimitives<(Of <<'(S, T>)>>)(PrimitiveType, Int32, Int32, Int32, Int32, Int32, array<S>[]()[][], Format, array<T>[]()[][], Int32) |
Renders the specified geometric primitive using user-supplied data.
|
|
|
DrawIndexedUserPrimitives<(Of <<'(S, T>)>>)(PrimitiveType, Int32, Int32, Int32, Int32, array<S>[]()[][], Format, array<T>[]()[][], Int32) |
Renders the specified geometric primitive using user-supplied data.
|
|
|
DrawIndexedUserPrimitives<(Of <<'(S, T>)>>)(PrimitiveType, Int32, Int32, Int32, array<S>[]()[][], Format, array<T>[]()[][], Int32) |
Renders the specified geometric primitive using user-supplied data.
|
|
|
DrawPrimitives(PrimitiveType, Int32, Int32) |
Renders non-indexed geometric primitives using data from the current input streams.
|
|
|
DrawRectanglePatch(Int32, array<Single>[]()[][]) |
Draws a rectangular patch using the currently set streams.
|
|
|
DrawRectanglePatch(Int32, array<Single>[]()[][], RectanglePatchInfo) |
Draws a rectangular patch using the currently set streams.
|
|
|
DrawTrianglePatch(Int32, array<Single>[]()[][]) |
Draws a triangular patch using the currently set streams.
|
|
|
DrawTrianglePatch(Int32, array<Single>[]()[][], TrianglePatchInfo) |
Draws a triangular patch using the currently set streams.
|
|
|
DrawUserPrimitives<(Of <<'(T>)>>)(PrimitiveType, Int32, Int32, array<T>[]()[][]) |
Renders non-indexed geometric primitives using user-supplied data.
|
|
|
DrawUserPrimitives<(Of <<'(T>)>>)(PrimitiveType, Int32, array<T>[]()[][]) |
Renders non-indexed geometric primitives using user-supplied data.
|
|
|
DriverLevel |
Gets the current driver version.
|
|
|
EnableLight(Int32, Boolean) |
Enables or disables a set of lighting parameters.
|
|
|
EndScene()()()() |
Ends a scene.
|
|
|
EndStateBlock()()()() |
Signals Direct3D to stop recording a device-state block.
|
|
|
Equals(Object) |
(Inherited from Object.) |
|
|
EvictManagedResources()()()() |
Evicts all managed resources, including both Direct3D and driver-managed resources.
|
|
|
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
|
FromPointer(IntPtr) |
|
|
|
GetBackBuffer(Int32, Int32) |
Retrieves a back buffer from the device's swap chain.
|
|
|
GetClipPlane(Int32) |
Gets the currently set user-defined clipping plane.
|
|
|
GetDisplayMode(Int32) |
Retrieve's the display mode's spatial resolution, color resolution, and refresh frequency.
|
|
|
GetFrontBufferData(Int32, Surface) |
Generates a copy of the device's front buffer and places that copy into the specified surface.
|
|
|
GetGammaRamp(Int32) |
Retrives the gamma correction ramp for the specified swap chain.
|
|
|
GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
|
GetLight(Int32) |
Retrievs a set of lighting properties that are used by the device.
|
|
|
GetPaletteEntries(Int32) |
Gets the individual color elements of the specified palette.
|
|
|
GetPixelShaderBooleanConstant(Int32, Int32) |
Gets a boolean pixel shader constant.
|
|
|
GetPixelShaderFloatConstant(Int32, Int32) |
Gets a floating point pixel shader constant.
|
|
|
GetPixelShaderIntegerConstant(Int32, Int32) |
Gets an integer pixel shader constant.
|
|
|
GetRasterStatus(Int32) |
Gets information describing the raster of the monitor on which the swap chain is presented.
|
|
|
GetRenderState(RenderState) |
Retrieves a render-state value for the device.
|
|
|
GetRenderState<(Of <<'(T>)>>)(RenderState) |
Retrieves a render-state value for the device.
|
|
|
GetRenderTarget(Int32) |
Retrieves a render target surface.
|
|
|
GetRenderTargetData(Surface, Surface) |
Copies the render-target data from device memory to system memory.
|
|
|
GetSamplerState(Int32, SamplerState) |
Retrieves a sampler state value for the device.
|
|
|
GetSamplerState<(Of <<'(T>)>>)(Int32, SamplerState) |
Retrieves a sampler state value for the device.
|
|
|
GetStreamSource(Int32, VertexBuffer%, Int32%, Int32%) |
Retrieves a vertex buffer bound to the specified data stream.
|
|
|
GetStreamSourceFrequency(Int32, Int32%, StreamSource%) |
Gets the stream source frequency divider value.
|
|
|
GetSwapChain(Int32) |
Gets a reference to the specified swap chain.
|
|
|
GetTexture(Int32) |
Gets the texture assigned to the specified stage.
|
|
|
GetTextureStageState(Int32, TextureStage) |
Retrieves a texture stage state value for the device.
|
|
|
GetTextureStageState<(Of <<'(T>)>>)(Int32, TextureStage) |
Retrieves a texture stage state value for the device.
|
|
|
GetTransform(Int32) |
Retrieves a matrix describing the transformation state.
|
|
|
GetTransform(TransformState) |
Retrieves a matrix describing the transformation state.
|
|
|
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
|
|
GetVertexShaderBooleanConstant(Int32, Int32) |
Gets a boolean vertex shader constant.
|
|
|
GetVertexShaderFloatConstant(Int32, Int32) |
Gets a floating point vertex shader constant.
|
|
|
GetVertexShaderIntegerConstant(Int32, Int32) |
Gets an integer vertex shader constant.
|
|
|
Indices |
Gets or sets the current index data.
|
|
|
InternalPointer |
|
|
|
IsDefaultPool |
Gets or sets a value indicating whether or not the object is in the default allocation pool.
(Inherited from ComObject.) |
|
|
IsLightEnabled(Int32) |
Gets a value indicating whether the specified light is enabled.
|
|
|
IsQuerySupported(QueryType) |
Determines whether the specified query type is supported by the device.
|
|
|
Material |
Gets or sets the current material properties used by the device.
|
|
|
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
|
MultiplyTransform(TransformState, Matrix) |
Multiplies a device's world, view, or projection matrix by the specified matrix.
|
|
|
NativeInterface |
|
|
|
NPatchMode |
Gets or sets the current N-patch mode segments.
|
|
|
PixelShader |
Gets or sets the currently active pixel shader.
|
|
|
PixelShaderProfile |
Gets the pixel shader version.
|
|
|
Present(Rectangle, Rectangle, IntPtr, Region) |
Presents the contents of the next buffer in the sequence of back buffers to the screen.
|
|
|
Present(Rectangle, Rectangle, IntPtr) |
Presents the contents of the next buffer in the sequence of back buffers to the screen.
|
|
|
Present(Rectangle, Rectangle) |
Presents the contents of the next buffer in the sequence of back buffers to the screen.
|
|
|
Present(Present) |
Presents the contents of the first swap chain in the device.
|
|
|
Present()()()() |
Presents the contents of the next buffer in the sequence of back buffers to the screen.
|
|
|
ProcessVertices(Int32, Int32, Int32, VertexBuffer, VertexDeclaration, LockFlags) |
Applies the vertex processing defined by the vertex shader to the set of input data streams,
generating a single stream of interleaved vertex data to the destination vertex buffer.
|
|
|
Reset(PresentParameters) |
Resets the device.
|
|
|
ResetStreamSourceFrequency(Int32) |
Resets the stream source frequency divider to its initial state.
|
|
|
RestoreVertexStream(Int32) |
Unbinds a previously bound vertex buffer as a render target.
|
|
|
ScissorRect |
Gets or sets the current scissor rectangle.
|
|
|
SetClipPlane(Int32, Plane) |
Sets the current user-defined clip plane.
|
|
|
SetCursor(Cursor, Boolean) |
Sets a Windows Forms cursor as the device cursor.
|
|
|
SetCursorPosition(Point, Boolean) |
Sets the current cursor position.
|
|
|
SetCursorPosition(Int32, Int32, Boolean) |
Sets the current cursor position.
|
|
|
SetCursorProperties(Point, Surface) |
Sets properties for the cursor.
|
|
|
SetCursorProperties(Int32, Int32, Surface) |
Sets properties for the cursor.
|
|
|
SetDialogBoxMode(Boolean) |
This method allows the use of GDI dialog boxes in full-screen mode applications.
|
|
|
SetGammaRamp(Int32, GammaRamp, Boolean) |
Sets the gamma correction ramp for the specified swap chain.
|
|
|
SetLight(Int32, Light) |
Assigns a set of lighting properties to the device.
|
|
|
SetPaletteEntries(Int32, array<PaletteEntry>[]()[][]) |
Sets palette entries.
|
|
|
SetPixelShaderConstant(Int32, array<Matrix>[]()[][]) |
Sets a vertex shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Matrix>[]()[][], Int32, Int32) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, Matrix*) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, Matrix*, Int32) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, Matrix) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Int32>[]()[][]) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Vector4>[]()[][]) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Single>[]()[][]) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Boolean>[]()[][]) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Int32>[]()[][], Int32, Int32) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Vector4>[]()[][], Int32, Int32) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Single>[]()[][], Int32, Int32) |
Sets a pixel shader constant.
|
|
|
SetPixelShaderConstant(Int32, array<Boolean>[]()[][], Int32, Int32) |
Sets a pixel shader constant.
|
|
|
SetR2VBMode(Boolean) |
Enables or disables render-to-vertex-buffer mode.
|
|
|
SetRenderState<(Of <<'(T>)>>)(RenderState, T) |
Sets a single device render-state parameter.
|
|
|
SetRenderState(RenderState, Single) |
Sets a single device render-state parameter.
|
|
|
SetRenderState(RenderState, Boolean) |
Sets a single device render-state parameter.
|
|
|
SetRenderState(RenderState, Int32) |
Sets a single device render-state parameter.
|
|
|
SetRenderTarget(Int32, Surface) |
Sets a new render target for the device.
|
|
|
SetSamplerState(Int32, SamplerState, TextureFilter) |
Sets a sampler state's value.
|
|
|
SetSamplerState(Int32, SamplerState, TextureAddress) |
Sets a sampler state's value.
|
|
|
SetSamplerState(Int32, SamplerState, Single) |
Sets a sampler state's value.
|
|
|
SetSamplerState(Int32, SamplerState, Int32) |
Sets a sampler state's value.
|
|
|
SetStreamSource(Int32, VertexBuffer, Int32, Int32) |
Binds a vertex buffer to a device data stream.
|
|
|
SetStreamSourceFrequency(Int32, Int32, StreamSource) |
Sets the stream source frequency divider value. This may be used to draw several instances of geometry.
|
|
|
SetTexture(Int32, BaseTexture) |
Assigns a texture to a stage.
|
|
|
SetTextureStageState(Int32, TextureStage, Single) |
Sets the state value for the currently assigned texture.
|
|
|
SetTextureStageState(Int32, TextureStage, TextureTransform) |
Sets the state value for the currently assigned texture.
|
|
|
SetTextureStageState(Int32, TextureStage, TextureArgument) |
Sets the state value for the currently assigned texture.
|
|
|
SetTextureStageState(Int32, TextureStage, TextureOperation) |
Sets the state value for the currently assigned texture.
|
|
|
SetTextureStageState(Int32, TextureStage, Int32) |
Sets the state value for the currently assigned texture.
|
|
|
SetTransform(Int32, Matrix) |
Sets a single device transformation state.
|
|
|
SetTransform(Int32, Matrix*) |
Sets a single device transformation state.
|
|
|
SetTransform(TransformState, Matrix) |
Sets a single device transformation state.
|
|
|
SetTransform(TransformState, Matrix*) |
Sets a single device transformation state.
|
|
|
SetVertexShaderConstant(Int32, array<Matrix>[]()[][]) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Matrix>[]()[][], Int32, Int32) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, Matrix*) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, Matrix*, Int32) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, Matrix) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Int32>[]()[][]) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Vector4>[]()[][]) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Single>[]()[][]) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Boolean>[]()[][]) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Int32>[]()[][], Int32, Int32) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Vector4>[]()[][], Int32, Int32) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Single>[]()[][], Int32, Int32) |
Sets a vertex shader constant.
|
|
|
SetVertexShaderConstant(Int32, array<Boolean>[]()[][], Int32, Int32) |
Sets a vertex shader constant.
|
|
|
ShowCursor |
Gets or sets a value indicating whether the cursor should be shown.
|
|
|
SoftwareVertexProcessing |
Gets or sets the vertex processing mode.
|
|
|
StretchRectangle(Surface, Surface, TextureFilter) |
Copys the contents of the source surface to the destination surface.
|
|
|
StretchRectangle(Surface, Rectangle, Surface, Rectangle, TextureFilter) |
Copys the contents of the source surface to the destination surface.
|
|
|
SwapChainCount |
Gets the number of implicitly created swap chains.
|
|
|
Tag |
Extra tag data stored along with the object. This member is intended for use by users of SlimDX
and has no internal meaning to the library.
(Inherited from ComObject.) |
|
|
TestCooperativeLevel()()()() |
Reports the current cooperative-level status of the device.
|
|
|
ToString()()()() |
(Inherited from Object.) |
|
|
UpdateSurface(Surface, Surface) |
Copies rectangular subsets of pixels from one surface to another.
|
|
|
UpdateSurface(Surface, Rectangle, Surface, Point) |
Copies rectangular subsets of pixels from one surface to another.
|
|
|
UpdateTexture(BaseTexture, BaseTexture) |
Updates the dirty portions of a texture.
|
|
|
ValidateDevice()()()() |
Reports on the device's ability to render the current texture-blending operations and arguments in a single pass.
|
|
|
VertexDeclaration |
Gets or sets the current vertex declaration.
|
|
|
VertexFormat |
Gets or sets the current fixed-function vertex format.
|
|
|
VertexShader |
Gets or sets the currently active vertex shader.
|
|
|
VertexShaderProfile |
Gets the vertex shader version.
|
|
|
Viewport |
Gets or sets the currently active viewport.
|
Assembly: SlimDX (Module: SlimDX) Version: 2.0.11.43