RetroArch
Macros | Functions
d2d1effecthelpers.h File Reference
#include <d2d1effectauthor.h>
Include dependency graph for d2d1effecthelpers.h:

Go to the source code of this file.

Macros

#define _D2D1_EFFECT_HELPERS_H_
 
#define D2D1_VALUE_TYPE_BINDING(NAME, TYPE, CLASS, SETTER, GETTER)
 
#define D2D1_BLOB_TYPE_BINDING(NAME, CLASS, SETTER, GETTER)
 
#define D2D1_STRING_TYPE_BINDING(NAME, CLASS, SETTER, GETTER)
 
#define D2D1_READONLY_VALUE_TYPE_BINDING(NAME, TYPE, CLASS, GETTER)
 
#define D2D1_READONLY_BLOB_TYPE_BINDING(NAME, CLASS, GETTER)
 
#define D2D1_READONLY_STRING_TYPE_BINDING(NAME, CLASS, GETTER)
 

Functions

template<class C , typename P , typename I >
HRESULT DeducingValueSetter (_In_ HRESULT(C::*callback)(P), _In_ I *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
 
template<typename T , T P, typename I >
HRESULT CALLBACK ValueSetter (_In_ IUnknown *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
 
template<class C , typename P , typename I >
HRESULT DeducingValueGetter (_In_ P(C::*callback)() const, _In_ const I *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
 
template<typename T , T P, typename I >
HRESULT CALLBACK ValueGetter (_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
 
template<class C , typename I >
HRESULT DeducingBlobSetter (_In_ HRESULT(C::*callback)(const BYTE *, UINT32), _In_ I *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
 
template<typename T , T P, typename I >
HRESULT CALLBACK BlobSetter (_In_ IUnknown *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
 
template<class C , typename I >
HRESULT DeducingBlobGetter (_In_ HRESULT(C::*callback)(BYTE *, UINT32, UINT32 *) const, _In_ const I *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
 
template<typename T , T P, typename I >
HRESULT CALLBACK BlobGetter (_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
 
template<class C , typename I >
HRESULT DeducingStringSetter (_In_ HRESULT(C::*callback)(PCWSTR string), _In_ I *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
 
template<typename T , T P, typename I >
HRESULT CALLBACK StringSetter (_In_ IUnknown *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
 
template<class C , typename I >
HRESULT DeducingStringGetter (_In_ HRESULT(C::*callback)(PWSTR, UINT32, UINT32 *) const, _In_ const I *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
 
template<typename T , T P, typename I >
HRESULT CALLBACK StringGetter (_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
 

Macro Definition Documentation

◆ _D2D1_EFFECT_HELPERS_H_

#define _D2D1_EFFECT_HELPERS_H_

◆ D2D1_BLOB_TYPE_BINDING

#define D2D1_BLOB_TYPE_BINDING (   NAME,
  CLASS,
  SETTER,
  GETTER 
)
Value:
{ \
NAME, \
&BlobSetter<HRESULT (CLASS::*)(const BYTE *, UINT32), SETTER, ID2D1EffectImpl>, \
&BlobGetter<HRESULT (CLASS::*)(BYTE *, UINT32, UINT32*) const, GETTER, ID2D1EffectImpl> \
}
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
HRESULT CALLBACK BlobSetter(_In_ IUnknown *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
Definition: d2d1effecthelpers.h:162
interface ID2D1EffectImpl ID2D1EffectImpl
Definition: d2d1effectauthor.h:1077
HRESULT CALLBACK BlobGetter(_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
Definition: d2d1effecthelpers.h:206
uint32_t UINT32
Definition: coretypes.h:10

◆ D2D1_READONLY_BLOB_TYPE_BINDING

#define D2D1_READONLY_BLOB_TYPE_BINDING (   NAME,
  CLASS,
  GETTER 
)
Value:
{ \
NAME, \
NULL, \
&BlobGetter<HRESULT (CLASS::*)(BYTE *, UINT32, UINT32*) const, GETTER, ID2D1EffectImpl> \
}
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
interface ID2D1EffectImpl ID2D1EffectImpl
Definition: d2d1effectauthor.h:1077
HRESULT CALLBACK BlobGetter(_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
Definition: d2d1effecthelpers.h:206
uint32_t UINT32
Definition: coretypes.h:10

◆ D2D1_READONLY_STRING_TYPE_BINDING

#define D2D1_READONLY_STRING_TYPE_BINDING (   NAME,
  CLASS,
  GETTER 
)
Value:
{ \
NAME, \
NULL, \
&StringGetter<HRESULT (CLASS::*)(PWSTR, UINT32, UINT32*) const, GETTER, ID2D1EffectImpl> \
}
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
interface ID2D1EffectImpl ID2D1EffectImpl
Definition: d2d1effectauthor.h:1077
uint32_t UINT32
Definition: coretypes.h:10
HRESULT CALLBACK StringGetter(_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
Definition: d2d1effecthelpers.h:305

◆ D2D1_READONLY_VALUE_TYPE_BINDING

#define D2D1_READONLY_VALUE_TYPE_BINDING (   NAME,
  TYPE,
  CLASS,
  GETTER 
)
Value:
{ \
NAME, \
NULL, \
&ValueGetter<TYPE (CLASS::*)() const, GETTER, ID2D1EffectImpl> \
}
HRESULT CALLBACK ValueGetter(_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
Definition: d2d1effecthelpers.h:118
Definition: inflate.h:35
interface ID2D1EffectImpl ID2D1EffectImpl
Definition: d2d1effectauthor.h:1077

◆ D2D1_STRING_TYPE_BINDING

#define D2D1_STRING_TYPE_BINDING (   NAME,
  CLASS,
  SETTER,
  GETTER 
)
Value:
{ \
NAME, \
&StringSetter<HRESULT (CLASS::*)(PCWSTR string), SETTER, ID2D1EffectImpl>, \
&StringGetter<HRESULT (CLASS::*)(PWSTR, UINT32, UINT32*) const, GETTER, ID2D1EffectImpl> \
}
GLsizei const GLchar *const * string
Definition: glext.h:6699
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
interface ID2D1EffectImpl ID2D1EffectImpl
Definition: d2d1effectauthor.h:1077
uint32_t UINT32
Definition: coretypes.h:10
HRESULT CALLBACK StringSetter(_In_ IUnknown *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
Definition: d2d1effecthelpers.h:252
HRESULT CALLBACK StringGetter(_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
Definition: d2d1effecthelpers.h:305

◆ D2D1_VALUE_TYPE_BINDING

#define D2D1_VALUE_TYPE_BINDING (   NAME,
  TYPE,
  CLASS,
  SETTER,
  GETTER 
)
Value:
{ \
NAME, \
&ValueSetter<HRESULT (CLASS::*)(TYPE), SETTER, ID2D1EffectImpl>, \
&ValueGetter<TYPE (CLASS::*)() const, GETTER, ID2D1EffectImpl> \
}
HRESULT CALLBACK ValueGetter(_In_ const IUnknown *effect, _Out_writes_opt_(dataSize) BYTE *data, UINT32 dataSize, _Out_opt_ UINT32 *actualSize)
Definition: d2d1effecthelpers.h:118
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
Definition: inflate.h:35
interface ID2D1EffectImpl ID2D1EffectImpl
Definition: d2d1effectauthor.h:1077
HRESULT CALLBACK ValueSetter(_In_ IUnknown *effect, _In_reads_(dataSize) const BYTE *data, UINT32 dataSize)
Definition: d2d1effecthelpers.h:59

Function Documentation

◆ BlobGetter()

template<typename T , T P, typename I >
HRESULT CALLBACK BlobGetter ( _In_ const IUnknown *  effect,
_Out_writes_opt_(dataSize) BYTE *  data,
UINT32  dataSize,
_Out_opt_ UINT32 actualSize 
)
Here is the call graph for this function:

◆ BlobSetter()

template<typename T , T P, typename I >
HRESULT CALLBACK BlobSetter ( _In_ IUnknown *  effect,
_In_reads_(dataSize) const BYTE *  data,
UINT32  dataSize 
)
Here is the call graph for this function:

◆ DeducingBlobGetter()

template<class C , typename I >
HRESULT DeducingBlobGetter ( _In_ HRESULT(C::*)(BYTE *, UINT32, UINT32 *) const  callback,
_In_ const I *  effect,
_Out_writes_opt_(dataSize) BYTE *  data,
UINT32  dataSize,
_Out_opt_ UINT32 actualSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeducingBlobSetter()

template<class C , typename I >
HRESULT DeducingBlobSetter ( _In_ HRESULT(C::*)(const BYTE *, UINT32 callback,
_In_ I *  effect,
_In_reads_(dataSize) const BYTE *  data,
UINT32  dataSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeducingStringGetter()

template<class C , typename I >
HRESULT DeducingStringGetter ( _In_ HRESULT(C::*)(PWSTR, UINT32, UINT32 *) const  callback,
_In_ const I *  effect,
_Out_writes_opt_(dataSize) BYTE *  data,
UINT32  dataSize,
_Out_opt_ UINT32 actualSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeducingStringSetter()

template<class C , typename I >
HRESULT DeducingStringSetter ( _In_ HRESULT(C::*)(PCWSTR string callback,
_In_ I *  effect,
_In_reads_(dataSize) const BYTE *  data,
UINT32  dataSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeducingValueGetter()

template<class C , typename P , typename I >
HRESULT DeducingValueGetter ( _In_ P(C::*)() const  callback,
_In_ const I *  effect,
_Out_writes_opt_(dataSize) BYTE *  data,
UINT32  dataSize,
_Out_opt_ UINT32 actualSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeducingValueSetter()

template<class C , typename P , typename I >
HRESULT DeducingValueSetter ( _In_ HRESULT(C::*)(P callback,
_In_ I *  effect,
_In_reads_(dataSize) const BYTE *  data,
UINT32  dataSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ StringGetter()

template<typename T , T P, typename I >
HRESULT CALLBACK StringGetter ( _In_ const IUnknown *  effect,
_Out_writes_opt_(dataSize) BYTE *  data,
UINT32  dataSize,
_Out_opt_ UINT32 actualSize 
)
Here is the call graph for this function:

◆ StringSetter()

template<typename T , T P, typename I >
HRESULT CALLBACK StringSetter ( _In_ IUnknown *  effect,
_In_reads_(dataSize) const BYTE *  data,
UINT32  dataSize 
)
Here is the call graph for this function:

◆ ValueGetter()

template<typename T , T P, typename I >
HRESULT CALLBACK ValueGetter ( _In_ const IUnknown *  effect,
_Out_writes_opt_(dataSize) BYTE *  data,
UINT32  dataSize,
_Out_opt_ UINT32 actualSize 
)
Here is the call graph for this function:

◆ ValueSetter()

template<typename T , T P, typename I >
HRESULT CALLBACK ValueSetter ( _In_ IUnknown *  effect,
_In_reads_(dataSize) const BYTE *  data,
UINT32  dataSize 
)
Here is the call graph for this function: