Compartilhar via


Usage Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines supported usage types for the current resource.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration Usage
'Usage
Dim instance As Usage
[FlagsAttribute]
public enum Usage
[FlagsAttribute]
public enum class Usage
[<FlagsAttribute>]
type Usage

Members

Member name Description
Supported by the .NET Compact Framework None Specifies no usage type for the current resource.
Supported by the .NET Compact Framework RenderTarget Specifies that the resource will be a render target.
Supported by the .NET Compact Framework Texture Indicates that the resource can be used as a texture.
Supported by the .NET Compact Framework Lockable Indicates that the resource is lockable.
Supported by the .NET Compact Framework Dynamic Indicates that the vertex buffer requires dynamic memory use, which is useful for drivers because it enables them to determine where to place the buffer. In general, static vertex buffers are placed in video memory and dynamic vertex buffers are placed in accelerated graphics port (AGP) memory. Note that there is no separate static use. If Dynamic is not specified, the vertex buffer is made static.
Supported by the .NET Compact Framework DoNotClip Indicates that the vertex buffer content will never require clipping. When rendering with buffers that have this flag set, the Clipping property for a RenderStateManager must be set to false.
Supported by the .NET Compact Framework WriteOnly Informs the system that the application writes only to the vertex buffer. Using this flag enables the driver to choose the best memory location, which results in efficient write operations and rendering. Attempts to read from a vertex buffer created with this capability will fail.

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming in the .NET Compact Framework