ID2D1DrawInfo::SetPixelShaderConstantBuffer-Methode (d2d1effectauthor.h)

Legt den Konstantenpuffer für den Pixel-Shader dieser Transformation fest.

Syntax

HRESULT SetPixelShaderConstantBuffer(
  [in] const BYTE *buffer,
       UINT32     bufferCount
);

Parameter

[in] buffer

Typ: const BYTE*

Die Daten, die auf den Konstantenpuffer angewendet werden.

bufferCount

Typ: UINT32

Die Anzahl der Bytes von Daten im Konstantenpuffer

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 8 und Plattformupdate für Windows 7 [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2012 und Plattformupdate für Windows Server 2008 R2 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile d2d1effectauthor.h
Bibliothek D2d1.lib

Weitere Informationen

ID2D1DrawInfo