ID3D10Texture1D interface (d3d10.h)
A 1D texture interface accesses texel data, which is structured memory.
Inheritance
The ID3D10Texture1D interface inherits from ID3D10Resource. ID3D10Texture1D also has these types of members:
Methods
The ID3D10Texture1D interface has these methods.
ID3D10Texture1D::GetDesc Get the properties of the texture resource. (ID3D10Texture1D.GetDesc) |
ID3D10Texture1D::Map Get a pointer to the data contained in a subresource, and deny the GPU access to that subresource. |
ID3D10Texture1D::Unmap Invalidate the pointer to a resource that was retrieved by ID3D10Texture1D::Map, and re-enable the GPU's access to that resource. |
Remarks
To create an empty 1D texture, call ID3D10Device::CreateTexture1D. For more details on creating and loading textures, see Creating Texture Resources.
Textures cannot be bound directly to the pipeline; instead, a view must be created and bound. Using a view, texture data can be interpreted at run time within certain restrictions. To use the texture as a render target or depth-stencil resource, call ID3D10Device::CreateRenderTargetView, and ID3D10Device::CreateDepthStencilView, respectively. To use the texture as an input to a shader, create a by calling ID3D10Device::CreateShaderResourceView.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d10.h |