Share via


Resource Class (Microsoft.DirectX.Direct3D)

Queries and prepares resources.

Definition

Visual Basic MustInherit Public Class Resource
    Inherits MarshalByRefObjectLeave Site
C# public abstract class Resource : MarshalByRefObjectLeave Site
C++ public ref class Resource abstract : MarshalByRefObjectLeave Site
JScript public abstract class Resource extends MarshalByRefObjectLeave Site

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
Dispose Immediately releases the unmanaged resources used by the Resource object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
FreePrivateData Frees the specified private data associated with the current resource.
GetHashCode Returns the hash code for the current instance.
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
GetPrivateData Copies the private data associated with a resource to a buffer.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
PreLoad Preloads a managed resource.
Resource Initializes a new instance of the Resource class.
SetPriority Assigns the resource-management priority for the current resource.
SetPrivateData Associates data with the resource that is intended for use by the application. Data is passed by value, and multiple sets of data can be associated with a single resource.
UpdateUnmanagedPointer Updates the unmanaged pointer for this Resource object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.

Properties

Property Description
Device Retrieves the device associated with a resource.
Priority Retrieves or sets the priority for the current resource.
Type Retrieves the type of a resource.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) IDirect3DResource9 interface pointer.

Inheritance Hierarchy

ObjectLeave Site

MarshalByRefObjectLeave Site

Resource

BaseTexture

IndexBuffer

Surface

VertexBuffer

Remarks

To create a texture resource, use one of the following objects.

To create a geometry-oriented resource, call one of the following methods.

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492