#[repr(transparent)]
pub struct Device(_);
Expand description

[docs.microsoft.com] Core interface used for general rendering, resource creation, etc.

Table of Contents

TopicOverview
Common
DrawingDraw primitives
BuffersBind/Create/Update IndexBuffers and VertexBuffers
QueriesCreate/Check Occlusion and other Querys
ShadersBind/Create PixelShaders and VertexShaders
StateBlocksCreate/Capture/Replay Direct3D states via StateBlocks
SurfacesBind/Create Surfaces for back buffers, render targets, depth stencil, etc.
SwapChainsCreate SwapChains / SwapChainExs for multi-window rendering
TexturesBind/Create/Update Textures, CubeTextures, and VolumeTextures
VertexDeclarationsBind/Create VertexDeclarations for describing VertexBuffer layouts
MiscellaniousMetadata, etc.
LightingConfigure (and query) Lighting
ViewportsConfigure (and query) the Viewport

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The raw underlying winapi type

Take ownership from a raw winapi type, panicing if raw is null. Read more

Take ownership from a raw winapi type, returning None if raw is null. Read more

Give up / leak ownership into a raw winapi pointer type.

Allow access as a raw winapi pointer type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.