IDCompositionTexture::SetSourceRect method (dcomp.h)
Important
Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the portion of an overall Direct3D texture that the composition texture represents (and samples from). This allows you to have multiple composition textures referencing the same Direct3D texture.
Syntax
HRESULT SetSourceRect(
const D2D_RECT_U & sourceRect
);
Parameters
sourceRect
Type: _In_ D2D_RECT_U&
The region of a Direct3D texture that the composition texture represents.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Header | dcomp.h |