mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Add ABI v2 external-handle plumbing for FSR3 bridge dispatch
This commit is contained in:
parent
e25253a6e8
commit
61cb2df400
7 changed files with 158 additions and 1 deletions
|
|
@ -462,6 +462,14 @@ bool AmdFsr3Runtime::dispatchUpscale(const AmdFsr3RuntimeDispatchDesc& desc) {
|
|||
wrapperDesc.cameraFar = desc.cameraFar;
|
||||
wrapperDesc.cameraFovYRadians = desc.cameraFovYRadians;
|
||||
wrapperDesc.reset = desc.reset ? 1u : 0u;
|
||||
wrapperDesc.externalFlags = desc.externalFlags;
|
||||
wrapperDesc.colorMemoryHandle = desc.colorMemoryHandle;
|
||||
wrapperDesc.depthMemoryHandle = desc.depthMemoryHandle;
|
||||
wrapperDesc.motionVectorMemoryHandle = desc.motionVectorMemoryHandle;
|
||||
wrapperDesc.outputMemoryHandle = desc.outputMemoryHandle;
|
||||
wrapperDesc.frameGenOutputMemoryHandle = desc.frameGenOutputMemoryHandle;
|
||||
wrapperDesc.acquireSemaphoreHandle = desc.acquireSemaphoreHandle;
|
||||
wrapperDesc.releaseSemaphoreHandle = desc.releaseSemaphoreHandle;
|
||||
const bool ok = fns_->wrapperDispatchUpscale(static_cast<WoweeFsr3WrapperContext>(wrapperContext_), &wrapperDesc) == 0;
|
||||
if (!ok) {
|
||||
lastError_ = "wrapper upscale dispatch failed";
|
||||
|
|
@ -570,6 +578,14 @@ bool AmdFsr3Runtime::dispatchFrameGeneration(const AmdFsr3RuntimeDispatchDesc& d
|
|||
wrapperDesc.cameraFar = desc.cameraFar;
|
||||
wrapperDesc.cameraFovYRadians = desc.cameraFovYRadians;
|
||||
wrapperDesc.reset = desc.reset ? 1u : 0u;
|
||||
wrapperDesc.externalFlags = desc.externalFlags;
|
||||
wrapperDesc.colorMemoryHandle = desc.colorMemoryHandle;
|
||||
wrapperDesc.depthMemoryHandle = desc.depthMemoryHandle;
|
||||
wrapperDesc.motionVectorMemoryHandle = desc.motionVectorMemoryHandle;
|
||||
wrapperDesc.outputMemoryHandle = desc.outputMemoryHandle;
|
||||
wrapperDesc.frameGenOutputMemoryHandle = desc.frameGenOutputMemoryHandle;
|
||||
wrapperDesc.acquireSemaphoreHandle = desc.acquireSemaphoreHandle;
|
||||
wrapperDesc.releaseSemaphoreHandle = desc.releaseSemaphoreHandle;
|
||||
const bool ok = fns_->wrapperDispatchFramegen(static_cast<WoweeFsr3WrapperContext>(wrapperContext_), &wrapperDesc) == 0;
|
||||
if (!ok) {
|
||||
lastError_ = "wrapper frame generation dispatch failed";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue