Usage Enumeration
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
/** @attribute FlagsAttribute() */
public enum Usage
FlagsAttribute
public enum Usage
Members
Member name | Description | |
---|---|---|
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. | |
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. | |
Lockable | Indicates that the resource is lockable. | |
None | Specifies no usage type for the current resource. | |
RenderTarget | Specifies that the resource will be a render target. | |
Texture | Indicates that the resource can be used as a texture. | |
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 Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
Microsoft.WindowsMobile.DirectX.Direct3D Namespace