Direct3D 9 Graphics

Overview of the Direct3D 9 Graphics technology.

To develop Direct3D 9 Graphics, you need these headers:

For programming guidance for this technology, see:

Functions

Title Description
Direct3DCreate9 Create an IDirect3D9 object and return an interface to it.
CheckDepthStencilMatch Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode.
CheckDeviceFormat Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter.
CheckDeviceFormatConversion Tests the device to see if it supports conversion from one display format to another.
CheckDeviceMultiSampleType Determines if a multisampling technique is available on this device.
CheckDeviceType Verifies whether a hardware accelerated device type can be used on this adapter.
CreateDevice Creates a device to represent the display adapter.
EnumAdapterModes Queries the device to determine whether the specified adapter supports the requested format and display mode. This method could be used in a loop to enumerate all the available adapter modes.
GetAdapterCount Returns the number of adapters on the system.
GetAdapterDisplayMode Retrieves the current display mode of the adapter.
GetAdapterIdentifier Describes the physical display adapters present in the system when the IDirect3D9 interface was instantiated.
GetAdapterModeCount Returns the number of display modes available on this adapter.
GetAdapterMonitor Returns the handle of the monitor associated with the Direct3D object.
GetDeviceCaps Retrieves device-specific information about a device.
RegisterSoftwareDevice Registers a pluggable software device. Software devices provide software rasterization enabling applications to access a variety of software rasterizers.
GenerateMipSubLevels Generate mipmap sublevels.
GetAutoGenFilterType Get the filter type that is used for automatically generated mipmap sublevels.
GetLevelCount Returns the number of texture levels in a multilevel texture.
GetLOD Returns a value clamped to the maximum level-of-detail set for a managed texture (this method is not supported for an unmanaged texture).
SetAutoGenFilterType Set the filter type that is used for automatically generated mipmap sublevels.
SetLOD Sets the most detailed level-of-detail for a managed texture.
AddDirtyRect Adds a dirty region to a cube texture resource.
GetCubeMapSurface Retrieves a cube texture map surface.
GetLevelDesc Retrieves a description of one face of the specified cube texture level.
LockRect Locks a rectangle on a cube texture resource.
UnlockRect Unlocks a rectangle on a cube texture resource.
BeginScene Begins a scene.
BeginStateBlock Signals Direct3D to begin recording a device-state block.
Clear Clears one or more surfaces such as a render target, multiple render targets, a stencil buffer, and a depth buffer.
ColorFill Allows an application to fill a rectangular area of a D3DPOOL_DEFAULT surface with a specified color.
CreateAdditionalSwapChain Creates an additional swap chain for rendering multiple views.
CreateCubeTexture Creates a cube texture resource.
CreateDepthStencilSurface Creates a depth-stencil resource.
CreateIndexBuffer Creates an index buffer.
CreateOffscreenPlainSurface Create an off-screen surface.
CreatePixelShader Creates a pixel shader.
CreateQuery Creates a status query.
CreateRenderTarget Creates a render-target surface.
CreateStateBlock Creates a new state block that contains the values for all device states, vertex-related states, or pixel-related states.
CreateTexture Creates a texture resource.
CreateVertexBuffer Creates a vertex buffer.
CreateVertexDeclaration Create a vertex shader declaration from the device and the vertex elements.
CreateVertexShader Creates a vertex shader.
CreateVolumeTexture Creates a volume texture resource.
DeletePatch Frees a cached high-order patch.
DrawIndexedPrimitive Based on indexing, renders the specified geometric primitive into an array of vertices.
DrawIndexedPrimitiveUP Renders the specified geometric primitive with data specified by a user memory pointer.
DrawPrimitive Renders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.
DrawPrimitiveUP Renders data specified by a user memory pointer as a sequence of geometric primitives of the specified type.
DrawRectPatch Draws a rectangular patch using the currently set streams.
DrawTriPatch Draws a triangular patch using the currently set streams.
EndScene Ends a scene that was begun by calling IDirect3DDevice9::BeginScene.
EndStateBlock Signals Direct3D to stop recording a device-state block and retrieve a pointer to the state block interface.
EvictManagedResources Evicts all managed resources, including both Direct3D and driver-managed resources.
GetAvailableTextureMem Returns an estimate of the amount of available texture memory.
GetBackBuffer Retrieves a back buffer from the device's swap chain.
GetClipPlane Retrieves the coefficients of a user-defined clipping plane for the device.
GetClipStatus Retrieves the clip status.
GetCreationParameters Retrieves the creation parameters of the device.
GetCurrentTexturePalette Retrieves the current texture palette.
GetDepthStencilSurface Gets the depth-stencil surface owned by the Direct3DDevice object.
GetDeviceCaps Retrieves the capabilities of the rendering device.
GetDirect3D Returns an interface to the instance of the Direct3D object that created the device.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetFrontBufferData Generates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.
GetFVF Gets the fixed vertex function declaration.
GetGammaRamp Retrieves the gamma correction ramp for the swap chain.
GetIndices Retrieves index data.
GetLight Retrieves a set of lighting properties that this device uses.
GetLightEnable Retrieves the activity status - enabled or disabled - for a set of lighting parameters within a device.
GetMaterial Retrieves the current material properties for the device.
GetNPatchMode Gets the N-patch mode segments.
GetNumberOfSwapChains Gets the number of implicit swap chains.
GetPaletteEntries Retrieves palette entries.
GetPixelShader Retrieves the currently set pixel shader.
GetPixelShaderConstantB Gets a Boolean shader constant.
GetPixelShaderConstantF Gets a floating-point shader constant.
GetPixelShaderConstantI Gets an integer shader constant.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
GetRenderState Retrieves a render-state value for a device.
GetRenderTarget Retrieves a render-target surface.
GetRenderTargetData Copies the render-target data from device memory to system memory.
GetSamplerState Gets the sampler state value.
GetScissorRect Gets the scissor rectangle.
GetSoftwareVertexProcessing Gets the vertex processing (hardware or software) mode.
GetStreamSource Retrieves a vertex buffer bound to the specified data stream.
GetStreamSourceFreq Gets the stream source frequency divider value.
GetSwapChain Gets a pointer to a swap chain.
GetTexture Retrieves a texture assigned to a stage for a device.
GetTextureStageState Retrieves a state value for an assigned texture.
GetTransform Retrieves a matrix describing a transformation state.
GetVertexDeclaration Gets a vertex shader declaration.
GetVertexShader Retrieves the currently set vertex shader.
GetVertexShaderConstantB Gets a Boolean vertex shader constant.
GetVertexShaderConstantF Gets a floating-point vertex shader constant.
GetVertexShaderConstantI Gets an integer vertex shader constant.
GetViewport Retrieves the viewport parameters currently set for the device.
LightEnable Enables or disables a set of lighting parameters within a device.
MultiplyTransform Multiplies a device's world, view, or projection matrices by a specified matrix.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the device.
ProcessVertices 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 Resets the type, size, and format of the swap chain.
SetClipPlane Sets the coefficients of a user-defined clipping plane for the device.
SetClipStatus Sets the clip status.
SetCurrentTexturePalette Sets the current texture palette.
SetCursorPosition Sets the cursor position and update options.
SetCursorProperties Sets properties for the cursor.
SetDepthStencilSurface Sets the depth stencil surface.
SetDialogBoxMode This method allows the use of GDI dialog boxes in full-screen mode applications.
SetFVF Sets the current vertex stream declaration.
SetGammaRamp Sets the gamma correction ramp for the implicit swap chain. This method will affect the entire screen (not just the active window if you are running in windowed mode).
SetIndices Sets index data.
SetLight Assigns a set of lighting properties for this device.
SetMaterial Sets the material properties for the device.
SetNPatchMode Enable or disable N-patches.
SetPaletteEntries Sets palette entries.
SetPixelShader Sets the current pixel shader to a previously created pixel shader.
SetPixelShaderConstantB Sets a Boolean shader constant.
SetPixelShaderConstantF Sets a floating-point shader constant.
SetPixelShaderConstantI Sets an integer shader constant.
SetRenderState Sets a single device render-state parameter.
SetRenderTarget Sets a new color buffer for the device.
SetSamplerState Sets the sampler state value.
SetScissorRect Sets the scissor rectangle.
SetSoftwareVertexProcessing Use this method to switch between software and hardware vertex processing.
SetStreamSource Binds a vertex buffer to a device data stream. For more information, see Setting the Stream Source (Direct3D 9).
SetStreamSourceFreq Sets the stream source frequency divider value. This may be used to draw several instances of geometry.
SetTexture Assigns a texture to a stage for a device.
SetTextureStageState Sets the state value for the currently assigned texture.
SetTransform Sets a single device transformation-related state.
SetVertexDeclaration Sets a Vertex Declaration (Direct3D 9).
SetVertexShader Sets the vertex shader.
SetVertexShaderConstantB Sets a Boolean vertex shader constant.
SetVertexShaderConstantF Sets a floating-point vertex shader constant.
SetVertexShaderConstantI Sets an integer vertex shader constant.
SetViewport Sets the viewport parameters for the device.
ShowCursor Displays or hides the cursor.
StretchRect Copy the contents of the source rectangle to the destination rectangle. The source rectangle can be stretched and filtered by the copy. This function is often used to change the aspect ratio of a video stream.
TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
UpdateSurface Copies rectangular subsets of pixels from one surface to another.
UpdateTexture Updates the dirty portions of a texture.
ValidateDevice Reports the device's ability to render the current texture-blending operations and arguments in a single pass.
GetDesc Retrieves a description of the index buffer resource.
Lock Locks a range of index data and obtains a pointer to the index buffer memory.
Unlock Unlocks index data.
GetDevice Gets the device.
GetFunction Gets a pointer to the shader data.
GetData Polls a queried resource to get the query state or a query result. For more information about queries, see Queries (Direct3D 9).
GetDataSize Gets the number of bytes in the query data.
GetDevice Gets the device that is being queried.
GetType Gets the query type.
Issue Issue a query.
FreePrivateData Frees the specified private data associated with this resource.
GetDevice Retrieves the device associated with a resource.
GetPriority Retrieves the priority for this resource.
GetPrivateData Copies the private data associated with the resource to a provided buffer.
GetType Returns the type of the resource.
PreLoad Preloads a managed resource.
SetPriority Assigns the priority of a resource for scheduling purposes.
SetPrivateData Associates data with the resource that is intended for use by the application, not by Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.
Apply Apply the state block to the current device state.
Capture Capture the current value of states that are included in a stateblock.
GetDevice Gets the device.
GetContainer Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. This method can also provide access to the parent swap chain if the surface is a back-buffer child.
GetDC Retrieves a device context.
GetDesc Retrieves a description of the surface.
LockRect Locks a rectangle on a surface.
ReleaseDC Release a device context handle.
UnlockRect Unlocks a rectangle on a surface.
GetBackBuffer Retrieves a back buffer from the swap chain of the device.
GetDevice Retrieves the device associated with the swap chain.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetFrontBufferData Generates a copy of the swapchain's front buffer and places that copy in a system memory buffer provided by the application.
GetPresentParameters Retrieves the presentation parameters associated with a swap chain.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.
AddDirtyRect Adds a dirty region to a texture resource.
GetLevelDesc Retrieves a level description of a texture resource.
GetSurfaceLevel Retrieves the specified texture surface level.
LockRect Locks a rectangle on a texture resource.
UnlockRect Unlocks a rectangle on a texture resource.
GetDesc Retrieves a description of the vertex buffer resource.
Lock Locks a range of vertex data and obtains a pointer to the vertex buffer memory.
Unlock Unlocks vertex data.
GetDeclaration Gets the vertex shader declaration.
GetDevice Gets the current device.
GetDevice Gets the device.
GetFunction Gets a pointer to the shader data.
FreePrivateData Frees the specified private data associated with this volume.
GetContainer Provides access to the parent volume texture object, if this surface is a child level of a volume texture.
GetDesc Retrieves a description of the volume.
GetDevice Retrieves the device associated with a volume.
GetPrivateData Copies the private data associated with the volume to a provided buffer.
LockBox Locks a box on a volume resource.
SetPrivateData Associates data with the volume that is intended for use by the application, not by Direct3D.
UnlockBox Unlocks a box on a volume resource.
AddDirtyBox Adds a dirty region to a volume texture resource.
GetLevelDesc Retrieves a level description of a volume texture resource.
GetVolumeLevel Retrieves the specified volume texture level.
LockBox Locks a box on a volume texture resource.
UnlockBox Unlocks a box on a volume texture resource.
Direct3DCreate9 Create an IDirect3D9 object and return an interface to it.
Direct3DCreate9Ex Creates an IDirect3D9Ex object and returns an interface to it.
CheckDepthStencilMatch Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode.
CheckDeviceFormat Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter.
CheckDeviceFormatConversion Tests the device to see if it supports conversion from one display format to another.
CheckDeviceMultiSampleType Determines if a multisampling technique is available on this device.
CheckDeviceType Verifies whether a hardware accelerated device type can be used on this adapter.
CreateDevice Creates a device to represent the display adapter.
EnumAdapterModes Queries the device to determine whether the specified adapter supports the requested format and display mode. This method could be used in a loop to enumerate all the available adapter modes.
GetAdapterCount Returns the number of adapters on the system.
GetAdapterDisplayMode Retrieves the current display mode of the adapter.
GetAdapterIdentifier Describes the physical display adapters present in the system when the IDirect3D9 interface was instantiated.
GetAdapterModeCount Returns the number of display modes available on this adapter.
GetAdapterMonitor Returns the handle of the monitor associated with the Direct3D object.
GetDeviceCaps Retrieves device-specific information about a device.
RegisterSoftwareDevice Registers a pluggable software device. Software devices provide software rasterization enabling applications to access a variety of software rasterizers.
CreateDeviceEx Creates a device to represent the display adapter.
EnumAdapterModesEx This method returns the actual display mode info based on the given mode index.
GetAdapterDisplayModeEx Retrieves the current display mode and rotation settings of the adapter.
GetAdapterLUID This method returns a unique identifier for the adapter that is specific to the adapter hardware. Applications can use this identifier to define robust mappings across various APIs (Direct3D 9, DXGI).
GetAdapterModeCountEx Returns the number of display modes available.
GenerateMipSubLevels Generate mipmap sublevels.
GetAutoGenFilterType Get the filter type that is used for automatically generated mipmap sublevels.
GetLevelCount Returns the number of texture levels in a multilevel texture.
GetLOD Returns a value clamped to the maximum level-of-detail set for a managed texture (this method is not supported for an unmanaged texture).
SetAutoGenFilterType Set the filter type that is used for automatically generated mipmap sublevels.
SetLOD Sets the most detailed level-of-detail for a managed texture.
AddDirtyRect Adds a dirty region to a cube texture resource.
GetCubeMapSurface Retrieves a cube texture map surface.
GetLevelDesc Retrieves a description of one face of the specified cube texture level.
LockRect Locks a rectangle on a cube texture resource.
UnlockRect Unlocks a rectangle on a cube texture resource.
BeginScene Begins a scene.
BeginStateBlock Signals Direct3D to begin recording a device-state block.
Clear Clears one or more surfaces such as a render target, multiple render targets, a stencil buffer, and a depth buffer.
ColorFill Allows an application to fill a rectangular area of a D3DPOOL_DEFAULT surface with a specified color.
CreateAdditionalSwapChain Creates an additional swap chain for rendering multiple views.
CreateCubeTexture Creates a cube texture resource.
CreateDepthStencilSurface Creates a depth-stencil resource.
CreateIndexBuffer Creates an index buffer.
CreateOffscreenPlainSurface Create an off-screen surface.
CreatePixelShader Creates a pixel shader.
CreateQuery Creates a status query.
CreateRenderTarget Creates a render-target surface.
CreateStateBlock Creates a new state block that contains the values for all device states, vertex-related states, or pixel-related states.
CreateTexture Creates a texture resource.
CreateVertexBuffer Creates a vertex buffer.
CreateVertexDeclaration Create a vertex shader declaration from the device and the vertex elements.
CreateVertexShader Creates a vertex shader.
CreateVolumeTexture Creates a volume texture resource.
DeletePatch Frees a cached high-order patch.
DrawIndexedPrimitive Based on indexing, renders the specified geometric primitive into an array of vertices.
DrawIndexedPrimitiveUP Renders the specified geometric primitive with data specified by a user memory pointer.
DrawPrimitive Renders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.
DrawPrimitiveUP Renders data specified by a user memory pointer as a sequence of geometric primitives of the specified type.
DrawRectPatch Draws a rectangular patch using the currently set streams.
DrawTriPatch Draws a triangular patch using the currently set streams.
EndScene Ends a scene that was begun by calling IDirect3DDevice9::BeginScene.
EndStateBlock Signals Direct3D to stop recording a device-state block and retrieve a pointer to the state block interface.
EvictManagedResources Evicts all managed resources, including both Direct3D and driver-managed resources.
GetAvailableTextureMem Returns an estimate of the amount of available texture memory.
GetBackBuffer Retrieves a back buffer from the device's swap chain.
GetClipPlane Retrieves the coefficients of a user-defined clipping plane for the device.
GetClipStatus Retrieves the clip status.
GetCreationParameters Retrieves the creation parameters of the device.
GetCurrentTexturePalette Retrieves the current texture palette.
GetDepthStencilSurface Gets the depth-stencil surface owned by the Direct3DDevice object.
GetDeviceCaps Retrieves the capabilities of the rendering device.
GetDirect3D Returns an interface to the instance of the Direct3D object that created the device.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetFrontBufferData Generates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.
GetFVF Gets the fixed vertex function declaration.
GetGammaRamp Retrieves the gamma correction ramp for the swap chain.
GetIndices Retrieves index data.
GetLight Retrieves a set of lighting properties that this device uses.
GetLightEnable Retrieves the activity status - enabled or disabled - for a set of lighting parameters within a device.
GetMaterial Retrieves the current material properties for the device.
GetNPatchMode Gets the N-patch mode segments.
GetNumberOfSwapChains Gets the number of implicit swap chains.
GetPaletteEntries Retrieves palette entries.
GetPixelShader Retrieves the currently set pixel shader.
GetPixelShaderConstantB Gets a Boolean shader constant.
GetPixelShaderConstantF Gets a floating-point shader constant.
GetPixelShaderConstantI Gets an integer shader constant.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
GetRenderState Retrieves a render-state value for a device.
GetRenderTarget Retrieves a render-target surface.
GetRenderTargetData Copies the render-target data from device memory to system memory.
GetSamplerState Gets the sampler state value.
GetScissorRect Gets the scissor rectangle.
GetSoftwareVertexProcessing Gets the vertex processing (hardware or software) mode.
GetStreamSource Retrieves a vertex buffer bound to the specified data stream.
GetStreamSourceFreq Gets the stream source frequency divider value.
GetSwapChain Gets a pointer to a swap chain.
GetTexture Retrieves a texture assigned to a stage for a device.
GetTextureStageState Retrieves a state value for an assigned texture.
GetTransform Retrieves a matrix describing a transformation state.
GetVertexDeclaration Gets a vertex shader declaration.
GetVertexShader Retrieves the currently set vertex shader.
GetVertexShaderConstantB Gets a Boolean vertex shader constant.
GetVertexShaderConstantF Gets a floating-point vertex shader constant.
GetVertexShaderConstantI Gets an integer vertex shader constant.
GetViewport Retrieves the viewport parameters currently set for the device.
LightEnable Enables or disables a set of lighting parameters within a device.
MultiplyTransform Multiplies a device's world, view, or projection matrices by a specified matrix.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the device.
ProcessVertices 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 Resets the type, size, and format of the swap chain.
SetClipPlane Sets the coefficients of a user-defined clipping plane for the device.
SetClipStatus Sets the clip status.
SetCurrentTexturePalette Sets the current texture palette.
SetCursorPosition Sets the cursor position and update options.
SetCursorProperties Sets properties for the cursor.
SetDepthStencilSurface Sets the depth stencil surface.
SetDialogBoxMode This method allows the use of GDI dialog boxes in full-screen mode applications.
SetFVF Sets the current vertex stream declaration.
SetGammaRamp Sets the gamma correction ramp for the implicit swap chain. This method will affect the entire screen (not just the active window if you are running in windowed mode).
SetIndices Sets index data.
SetLight Assigns a set of lighting properties for this device.
SetMaterial Sets the material properties for the device.
SetNPatchMode Enable or disable N-patches.
SetPaletteEntries Sets palette entries.
SetPixelShader Sets the current pixel shader to a previously created pixel shader.
SetPixelShaderConstantB Sets a Boolean shader constant.
SetPixelShaderConstantF Sets a floating-point shader constant.
SetPixelShaderConstantI Sets an integer shader constant.
SetRenderState Sets a single device render-state parameter.
SetRenderTarget Sets a new color buffer for the device.
SetSamplerState Sets the sampler state value.
SetScissorRect Sets the scissor rectangle.
SetSoftwareVertexProcessing Use this method to switch between software and hardware vertex processing.
SetStreamSource Binds a vertex buffer to a device data stream. For more information, see Setting the Stream Source (Direct3D 9).
SetStreamSourceFreq Sets the stream source frequency divider value. This may be used to draw several instances of geometry.
SetTexture Assigns a texture to a stage for a device.
SetTextureStageState Sets the state value for the currently assigned texture.
SetTransform Sets a single device transformation-related state.
SetVertexDeclaration Sets a Vertex Declaration (Direct3D 9).
SetVertexShader Sets the vertex shader.
SetVertexShaderConstantB Sets a Boolean vertex shader constant.
SetVertexShaderConstantF Sets a floating-point vertex shader constant.
SetVertexShaderConstantI Sets an integer vertex shader constant.
SetViewport Sets the viewport parameters for the device.
ShowCursor Displays or hides the cursor.
StretchRect Copy the contents of the source rectangle to the destination rectangle. The source rectangle can be stretched and filtered by the copy. This function is often used to change the aspect ratio of a video stream.
TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
UpdateSurface Copies rectangular subsets of pixels from one surface to another.
UpdateTexture Updates the dirty portions of a texture.
ValidateDevice Reports the device's ability to render the current texture-blending operations and arguments in a single pass.
CheckDeviceState Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
CheckResourceResidency Checks an array of resources to determine if it is likely that they will cause a large stall at Draw time because the system must make the resources GPU-accessible.
ComposeRects Copy a text string to one surface using an alphabet of glyphs on another surface. Composition is done by the GPU using bitwise operations.
CreateDepthStencilSurfaceEx Creates a depth-stencil surface.
CreateOffscreenPlainSurfaceEx Create an off-screen surface.
CreateRenderTargetEx Creates a render-target surface.
GetDisplayModeEx Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.
GetGPUThreadPriority Get the priority of the GPU thread.
GetMaximumFrameLatency Retrieves the number of frames of data that the system is allowed to queue.
PresentEx Swap the swapchain's next buffer with the front buffer.
ResetEx Resets the type, size, and format of the swap chain with all other surfaces persistent.
SetConvolutionMonoKernel Prepare the texture sampler for monochrome convolution filtering on a single-color texture.
SetGPUThreadPriority Set the priority on the GPU thread.
SetMaximumFrameLatency Set the number of frames that the system is allowed to queue for rendering.
TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
WaitForVBlank Suspend execution of the calling thread until the next vertical blank signal.
GetDesc Retrieves a description of the index buffer resource.
Lock Locks a range of index data and obtains a pointer to the index buffer memory.
Unlock Unlocks index data.
GetDevice Gets the device.
GetFunction Gets a pointer to the shader data.
GetData Polls a queried resource to get the query state or a query result. For more information about queries, see Queries (Direct3D 9).
GetDataSize Gets the number of bytes in the query data.
GetDevice Gets the device that is being queried.
GetType Gets the query type.
Issue Issue a query.
FreePrivateData Frees the specified private data associated with this resource.
GetDevice Retrieves the device associated with a resource.
GetPriority Retrieves the priority for this resource.
GetPrivateData Copies the private data associated with the resource to a provided buffer.
GetType Returns the type of the resource.
PreLoad Preloads a managed resource.
SetPriority Assigns the priority of a resource for scheduling purposes.
SetPrivateData Associates data with the resource that is intended for use by the application, not by Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.
Apply Apply the state block to the current device state.
Capture Capture the current value of states that are included in a stateblock.
GetDevice Gets the device.
GetContainer Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. This method can also provide access to the parent swap chain if the surface is a back-buffer child.
GetDC Retrieves a device context.
GetDesc Retrieves a description of the surface.
LockRect Locks a rectangle on a surface.
ReleaseDC Release a device context handle.
UnlockRect Unlocks a rectangle on a surface.
GetBackBuffer Retrieves a back buffer from the swap chain of the device.
GetDevice Retrieves the device associated with the swap chain.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetFrontBufferData Generates a copy of the swapchain's front buffer and places that copy in a system memory buffer provided by the application.
GetPresentParameters Retrieves the presentation parameters associated with a swap chain.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.
GetDisplayModeEx Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.
GetLastPresentCount Returns the number of times the swapchain has been processed.
AddDirtyRect Adds a dirty region to a texture resource.
GetLevelDesc Retrieves a level description of a texture resource.
GetSurfaceLevel Retrieves the specified texture surface level.
LockRect Locks a rectangle on a texture resource.
UnlockRect Unlocks a rectangle on a texture resource.
GetDesc Retrieves a description of the vertex buffer resource.
Lock Locks a range of vertex data and obtains a pointer to the vertex buffer memory.
Unlock Unlocks vertex data.
GetDeclaration Gets the vertex shader declaration.
GetDevice Gets the current device.
GetDevice Gets the device.
GetFunction Gets a pointer to the shader data.
FreePrivateData Frees the specified private data associated with this volume.
GetContainer Provides access to the parent volume texture object, if this surface is a child level of a volume texture.
GetDesc Retrieves a description of the volume.
GetDevice Retrieves the device associated with a volume.
GetPrivateData Copies the private data associated with the volume to a provided buffer.
LockBox Locks a box on a volume resource.
SetPrivateData Associates data with the volume that is intended for use by the application, not by Direct3D.
UnlockBox Unlocks a box on a volume resource.
AddDirtyBox Adds a dirty region to a volume texture resource.
GetLevelDesc Retrieves a level description of a volume texture resource.
GetVolumeLevel Retrieves the specified volume texture level.
LockBox Locks a box on a volume texture resource.
UnlockBox Unlocks a box on a volume texture resource.

Interfaces

Title Description
IDirect3D9 Applications use the methods of the IDirect3D9 interface to create Microsoft Direct3D objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device.
IDirect3DBaseTexture9 Applications use the methods of the IDirect3DBaseTexture9 interface to manipulate texture resources including cube and volume textures.
IDirect3DCubeTexture9 Applications use the methods of the IDirect3DCubeTexture9 interface to manipulate a cube texture resource.
IDirect3DDevice9 Applications use the methods of the IDirect3DDevice9 interface to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
IDirect3DIndexBuffer9 Applications use the methods of the IDirect3DIndexBuffer9 interface to manipulate an index buffer resource.
IDirect3DPixelShader9 Applications use the methods of the IDirect3DPixelShader9 interface to encapsulate the functionality of a pixel shader.
IDirect3DQuery9 Applications use the methods of the IDirect3DQuery9 interface to perform asynchronous queries on a driver.
IDirect3DResource9 Applications use the methods of the IDirect3DResource9 interface to query and prepare resources.
IDirect3DStateBlock9 Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.
IDirect3DSurface9 Applications use the methods of the IDirect3DSurface9 interface to query and prepare surfaces.
IDirect3DSwapChain9 Applications use the methods of the IDirect3DSwapChain9 interface to manipulate a swap chain.
IDirect3DTexture9 Applications use the methods of the IDirect3DTexture9 interface to manipulate a texture resource.
IDirect3DVertexBuffer9 Applications use the methods of the IDirect3DVertexBuffer9 interface to manipulate vertex buffer resources.
IDirect3DVertexDeclaration9 Applications use the methods of the IDirect3DVertexDeclaration9 interface to encapsulate the vertex shader declaration.
IDirect3DVertexShader9 Applications use the methods of the IDirect3DVertexShader9 interface to encapsulate the functionality of a vertex shader.
IDirect3DVolume9 Applications use the methods of the IDirect3DVolume9 interface to manipulate volume resources.
IDirect3DVolumeTexture9 Applications use the methods of the IDirect3DVolumeTexture9 interface to manipulate a volume texture resource.
IDirect3D9 Applications use the methods of the IDirect3D9 interface to create Microsoft Direct3D objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device.
IDirect3D9Ex Applications use the methods of the IDirect3D9Ex interface (which inherits from IDirect3D9) to create Microsoft Direct3D 9Ex objects and set up the environment.
IDirect3DBaseTexture9 Applications use the methods of the IDirect3DBaseTexture9 interface to manipulate texture resources including cube and volume textures.
IDirect3DCubeTexture9 Applications use the methods of the IDirect3DCubeTexture9 interface to manipulate a cube texture resource.
IDirect3DDevice9 Applications use the methods of the IDirect3DDevice9 interface to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
IDirect3DDevice9Ex Applications use the methods of the IDirect3DDevice9Ex interface to render primitives, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
IDirect3DIndexBuffer9 Applications use the methods of the IDirect3DIndexBuffer9 interface to manipulate an index buffer resource.
IDirect3DPixelShader9 Applications use the methods of the IDirect3DPixelShader9 interface to encapsulate the functionality of a pixel shader.
IDirect3DQuery9 Applications use the methods of the IDirect3DQuery9 interface to perform asynchronous queries on a driver.
IDirect3DResource9 Applications use the methods of the IDirect3DResource9 interface to query and prepare resources.
IDirect3DStateBlock9 Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.
IDirect3DSurface9 Applications use the methods of the IDirect3DSurface9 interface to query and prepare surfaces.
IDirect3DSwapChain9 Applications use the methods of the IDirect3DSwapChain9 interface to manipulate a swap chain.
IDirect3DSwapChain9Ex Applications use the methods of the IDirect3DSwapChain9Ex interface to manipulate a swap chain.
IDirect3DTexture9 Applications use the methods of the IDirect3DTexture9 interface to manipulate a texture resource.
IDirect3DVertexBuffer9 Applications use the methods of the IDirect3DVertexBuffer9 interface to manipulate vertex buffer resources.
IDirect3DVertexDeclaration9 Applications use the methods of the IDirect3DVertexDeclaration9 interface to encapsulate the vertex shader declaration.
IDirect3DVertexShader9 Applications use the methods of the IDirect3DVertexShader9 interface to encapsulate the functionality of a vertex shader.
IDirect3DVolume9 Applications use the methods of the IDirect3DVolume9 interface to manipulate volume resources.
IDirect3DVolumeTexture9 Applications use the methods of the IDirect3DVolumeTexture9 interface to manipulate a volume texture resource.

Structures

Title Description
tagPALETTEENTRY Specifies the color and usage of an entry in a logical palette.
_D3DCAPS9 Represents the capabilities of the hardware exposed through the Direct3D object.
_D3DPSHADERCAPS2_0 Pixel shader driver caps.
_D3DVSHADERCAPS2_0 Vertex shader caps.