[host] d12: added downsampler

This commit is contained in:
Geoffrey McRae
2024-02-28 20:21:47 +11:00
parent 97d91a32c8
commit 4463ca15f6
6 changed files with 548 additions and 9 deletions

View File

@@ -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,