Skip to content

Commit 1e04a4b

Browse files
Add SuperResolution support to Archiver and .NET mapping
1 parent ee6c3a8 commit 1e04a4b

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

Graphics/Archiver/include/SerializationDeviceImpl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ class SerializationDeviceImpl final : public RenderDeviceBase<SerializationEngin
7070
UNSUPPORTED_METHOD(void, CreateTLAS, const TopLevelASDesc& Desc, ITopLevelAS** ppTLAS)
7171
UNSUPPORTED_METHOD(void, CreateSBT, const ShaderBindingTableDesc& Desc, IShaderBindingTable** ppSBT)
7272
UNSUPPORTED_METHOD(void, CreatePipelineResourceSignature, const PipelineResourceSignatureDesc& Desc, IPipelineResourceSignature** ppSignature)
73+
UNSUPPORTED_METHOD(void, CreateSuperResolution, const SuperResolutionDesc& Desc, ISuperResolution** ppUpscaler)
7374
UNSUPPORTED_METHOD(void, CreateDeviceMemory, const DeviceMemoryCreateInfo& CreateInfo, IDeviceMemory** ppMemory)
7475
UNSUPPORTED_METHOD(void, CreatePipelineStateCache, const PipelineStateCacheCreateInfo& CreateInfo, IPipelineStateCache** ppPSOCache)
7576
UNSUPPORTED_METHOD(void, CreateDeferredContext, IDeviceContext** ppContext)
7677
UNSUPPORTED_METHOD(void, IdleGPU)
7778
UNSUPPORTED_METHOD(void, ReleaseStaleResources, bool ForceRelease)
79+
80+
UNSUPPORTED_CONST_METHOD(void, GetSuperResSourceSettings, const GetSuperResSourceSettingsAttribs& Attribs, SuperResolutionSourceSettings& Settings)
7881
// clang-format on
7982

8083
/// Implementation of IRenderDevice::CreateRenderPass().

Graphics/Archiver/include/SerializationEngineImplTraits.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ struct SerializationEngineImplTraits
9191
using PipelineResourceSignatureImplType = SerializedResourceSignatureImpl;
9292
using DeviceMemoryImplType = SerializedObjectStub;
9393
using PipelineStateCacheImplType = SerializedObjectStub;
94+
using SuperResolutionImplType = SerializedObjectStub;
9495
};
9596

9697
template <typename ReturnType>

Graphics/GraphicsEngine.NET/Mapping.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<include file="ShaderBindingTable.h" namespace="Diligent" attach="true"/>
5656
<include file="ShaderResourceBinding.h" namespace="Diligent" attach="true"/>
5757
<include file="ShaderResourceVariable.h" namespace="Diligent" attach="true"/>
58+
<include file="SuperResolution.h" namespace="Diligent" attach="true"/>
5859
<include file="SwapChain.h" namespace="Diligent" attach="true"/>
5960
<include file="Texture.h" namespace="Diligent" attach="true"/>
6061
<include file="TextureView.h" namespace="Diligent" attach="true"/>
@@ -248,6 +249,7 @@
248249
<map param="IRenderDevice::CreateBuffer::pBuffData" attribute="optional" default="null"/>
249250
<map param="IRenderDevice::CreateTexture::pData" attribute="optional" default="null"/>
250251
<map param="IRenderDevice::Create(.+)PipelineState::PSOCreateInfo" name="createInfo"/>
252+
<map param="IRenderDevice::GetSuperResSourceSettings::Settings" attribute="out"/>
251253

252254
<!--Diligent::IDeviceContext-->
253255
<map method="IDeviceContext::SetVertexBuffers" visibility="private"/>
@@ -299,6 +301,10 @@
299301
<!--Diligent::IQuery-->
300302
<map method="IQuery::GetData" visibility="private"/>
301303
<map param="IQuery::GetData::pData" type="void" keep-pointers="true"/>
304+
305+
<!--Diligent::ISuperResolution-->
306+
<map param="ISuperResolution::GetOptimalJitterPattern::pJitterX" attribute="out"/>
307+
<map param="ISuperResolution::GetOptimalJitterPattern::pJitterY" attribute="out"/>
302308
</mapping>
303309

304310
</config>

0 commit comments

Comments
 (0)