ID2D1EffectContext::CreateResourceTexture method
Creates or finds the given resource texture, depending on whether a resource id is specified. It also optionally initializes the texture with the specified data.
Syntax
HRESULT CreateResourceTexture( [in, optional] const GUID *resourceId, [in] const D2D1_RESOURCE_TEXTURE_PROPERTIES *resourceTextureProperties, [in, optional] const BYTE *data, [in, optional] const UINT32 *strides, UINT32 dataSize, [out] ID2D1ResourceTexture **resourceTexture );
Parameters
- resourceId [in, optional]
-
Type: const GUID*
An optional pointer to the unique id that identifies the lookup table.
- resourceTextureProperties [in]
-
Type: const D2D1_RESOURCE_TEXTURE_PROPERTIES*
The properties used to create the resource texture.
- data [in, optional]
-
Type: const BYTE*
The optional data to be loaded into the resource texture.
- strides [in, optional]
-
Type: const UINT32*
An optional pointer to the stride to advance through the resource texture, according to dimension.
- dataSize
-
Type: UINT32
The size, in bytes, of the data.
- resourceTexture [out]
-
Type: ID2D1ResourceTexture**
The returned texture that can be used as a resource in a Direct2D effect.
Return value
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| HRESULT | Description |
|---|---|
| S_OK | No error occurred. |
| E_OUTOFMEMORY | Direct2D could not allocate sufficient memory to complete the call. |
| E_INVALIDARG | An invalid parameter was passed to the returning function. |
Requirements
|
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
See also