mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 11:28:11 +00:00
[host] d12: added downsampler
This commit is contained in:
@@ -55,6 +55,10 @@ struct D12Effect
|
||||
const D12FrameFormat * src,
|
||||
D12FrameFormat * dst);
|
||||
|
||||
void (*adjustDamage)(D12Effect * effect,
|
||||
RECT dirtyRects[],
|
||||
unsigned * nbDirtyRects);
|
||||
|
||||
ID3D12Resource * (*run)(D12Effect * effect,
|
||||
ID3D12Device3 * device,
|
||||
ID3D12GraphicsCommandList * commandList,
|
||||
@@ -90,6 +94,12 @@ static inline D12EffectStatus d12_effectSetFormat(D12Effect * effect,
|
||||
D12FrameFormat * dst)
|
||||
{ return effect->setFormat(effect, device, src, dst); }
|
||||
|
||||
static inline void d12_effectAdjustDamage(D12Effect * effect,
|
||||
RECT dirtyRects[],
|
||||
unsigned * nbDirtyRects)
|
||||
{ if (effect->adjustDamage)
|
||||
effect->adjustDamage(effect, dirtyRects, nbDirtyRects); }
|
||||
|
||||
static inline ID3D12Resource * d12_effectRun(D12Effect * effect,
|
||||
ID3D12Device3 * device,
|
||||
ID3D12GraphicsCommandList * commandList,
|
||||
|
Reference in New Issue
Block a user