ID2D1ComputeInfo::SetConstantBuffer method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Establishes or changes the constant buffer data that will be passed to the compute shader specified for the render pass.
Syntax
HRESULT SetConstantBuffer(
UINT32 bufferIndex,
[in] const BYTE *buffer,
UINT bufferCount
);
Parameters
bufferIndex
The index to which the constant buffer should be applied.buffer [in]
The data applied to the constant buffer.bufferCount
The number of bytes of data in the constant buffer.
Return value
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 | Failed to allocate necessary memory. |
Remarks
If this call fails, the corresponding ID2D1Effect instance is placed into an error state and fails to draw.
Requirements
Minimum supported client |
Windows 8 Consumer Preview |
Minimum supported server |
Windows Server 8 Beta |
Header |
ID2D1EffectAuthor.h |
Library |
ID2D1.lib |
See also
Build date: 3/7/2012