Quantcast
Channel: DirectXTex texture processing library
Viewing all articles
Browse latest Browse all 1174

Updated Wiki: Direct3D 11 Helper Functions

$
0
0
Functions for working with the Direct3D 11 API using DirectXTex image data. These functions are intended for use in tools. For runtime loading of resources, we strongly recommend using DDSTextureLoader, and/or WICTextureLoader instead of DirectXTex. For simple screenshot captures, consider using ScreenGrab.

IsSupportedTexture
Returns true if the given texture metadata is supported by the device.

CreateTexture
Creates a Direct3D 11 resource from a set of images.

CreateShaderResourceView
Creates a Direct3D 11 resource and shader resource view from a set of images.

CreateTextureEx
CreateShaderResourceViewEx
These versions provide explicit control over the created resource's usage, binding flags, CPU access flags, and miscellaneous flags for advanced / expert scenarios. The standard routines default to D3D11_USAGE_DEFAULT, D3D11_BIND_SHADER_RESOURCE, 0, and 0 respectively. For cubemaps, the miscellaneous flags default to D3D11_RESOURCE_MISC_TEXTURECUBE. There is also a 'forceSRGB' option for working around gamma issues with content that is in the sRGB or similar color space but is not encoded explicitly as an SRGB format.

CaptureTexture
Captures a Direct3D 11 render target and returns an image.


Viewing all articles
Browse latest Browse all 1174

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>