This commit is contained in:
Richard Hähne 2023-02-22 22:50:28 -05:00 committed by GitHub
commit 191245b4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 30 deletions

View File

@ -38,21 +38,21 @@ class UpscaleContext_FSR2_API : public UpscaleContext
public:
UpscaleContext_FSR2_API(UpscaleType type, std::string name);
virtual std::string Name() { return "FSR 2.0 API"; }
virtual void OnCreate(const FfxUpscaleInitParams& initParams);
virtual void OnDestroy();
virtual void OnCreateWindowSizeDependentResources(
std::string Name() override { return "FSR 2.0 API"; }
void OnCreate(const FfxUpscaleInitParams& initParams) override;
void OnDestroy() override;
void OnCreateWindowSizeDependentResources(
ID3D12Resource* input,
ID3D12Resource* output,
uint32_t renderWidth,
uint32_t renderHeight,
uint32_t displayWidth,
uint32_t displayHeight,
bool hdr);
virtual void OnDestroyWindowSizeDependentResources();
virtual void BuildDevUI(UIState* pState) override;
virtual void GenerateReactiveMask(ID3D12GraphicsCommandList* pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState);
virtual void Draw(ID3D12GraphicsCommandList* pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState);
bool hdr) override;
void OnDestroyWindowSizeDependentResources() override;
void BuildDevUI(UIState* pState) override;
void GenerateReactiveMask(ID3D12GraphicsCommandList* pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState) override;
void Draw(ID3D12GraphicsCommandList* pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState) override;
private:
void ReloadPipelines();

View File

@ -33,14 +33,14 @@ using namespace CAULDRON_DX12;
class UpscaleContext_Spatial : public UpscaleContext
{
public:
UpscaleContext_Spatial(UpscaleType type, std::string name);
UpscaleContext_Spatial(UpscaleType type, std::string name);
virtual std::string Name() { return "Spatial Upscale"; }
virtual void OnCreate(const FfxUpscaleInitParams& initParams);
virtual void OnDestroy();
virtual void OnCreateWindowSizeDependentResources(ID3D12Resource* input, ID3D12Resource* output, uint32_t renderWidth, uint32_t renderHeight, uint32_t displayWidth, uint32_t displayHeight, bool hdr);
virtual void OnDestroyWindowSizeDependentResources();
virtual void Draw(ID3D12GraphicsCommandList* pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState);
std::string Name() override { return "Spatial Upscale"; }
void OnCreate(const FfxUpscaleInitParams& initParams) override;
void OnDestroy() override;
void OnCreateWindowSizeDependentResources(ID3D12Resource* input, ID3D12Resource* output, uint32_t renderWidth, uint32_t renderHeight, uint32_t displayWidth, uint32_t displayHeight, bool hdr) override;
void OnDestroyWindowSizeDependentResources() override;
void Draw(ID3D12GraphicsCommandList* pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState) override;
protected:
typedef struct _FfxTaaCB_

View File

@ -38,14 +38,14 @@ class UpscaleContext_FSR2_API : public UpscaleContext
public:
UpscaleContext_FSR2_API(UpscaleType type, std::string name);
virtual std::string Name() { return "FSR 2.0 API"; }
virtual void OnCreate(const FfxUpscaleInitParams& initParams);
virtual void OnDestroy();
virtual void OnCreateWindowSizeDependentResources(VkImageView input, VkImageView output, uint32_t renderWidth, uint32_t renderHeight, uint32_t displayWidth, uint32_t displayHeight, bool hdr);
virtual void OnDestroyWindowSizeDependentResources();
virtual void BuildDevUI(UIState* pState) override;
virtual void GenerateReactiveMask(VkCommandBuffer pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState);
virtual void Draw(VkCommandBuffer commandBuffer, const FfxUpscaleSetup& cameraSetup, UIState* pState);
std::string Name() override { return "FSR 2.0 API"; }
void OnCreate(const FfxUpscaleInitParams& initParams) override;
void OnDestroy() override;
void OnCreateWindowSizeDependentResources(VkImageView input, VkImageView output, uint32_t renderWidth, uint32_t renderHeight, uint32_t displayWidth, uint32_t displayHeight, bool hdr) override;
void OnDestroyWindowSizeDependentResources() override;
void BuildDevUI(UIState* pState) override;
void GenerateReactiveMask(VkCommandBuffer pCommandList, const FfxUpscaleSetup& cameraSetup, UIState* pState) override;
void Draw(VkCommandBuffer commandBuffer, const FfxUpscaleSetup& cameraSetup, UIState* pState) override;
private:
void ReloadPipelines();

View File

@ -35,12 +35,12 @@ class UpscaleContext_Spatial : public UpscaleContext
public:
UpscaleContext_Spatial(UpscaleType type, std::string name);
virtual std::string Name() { return "Spatial Upscale"; }
virtual void OnCreate(const FfxUpscaleInitParams& initParams);
virtual void OnDestroy();
virtual void OnCreateWindowSizeDependentResources(VkImageView input, VkImageView output, uint32_t renderWidth, uint32_t renderHeight, uint32_t displayWidth, uint32_t displayHeight, bool hdr);
virtual void OnDestroyWindowSizeDependentResources();
virtual void Draw(VkCommandBuffer commandBuffer, const FfxUpscaleSetup& cameraSetup, UIState* pState);
std::string Name() override { return "Spatial Upscale"; }
void OnCreate(const FfxUpscaleInitParams& initParams) override;
void OnDestroy() override;
void OnCreateWindowSizeDependentResources(VkImageView input, VkImageView output, uint32_t renderWidth, uint32_t renderHeight, uint32_t displayWidth, uint32_t displayHeight, bool hdr) override;
void OnDestroyWindowSizeDependentResources() override;
void Draw(VkCommandBuffer commandBuffer, const FfxUpscaleSetup& cameraSetup, UIState* pState) override;
protected:
typedef struct _FfxTaaCB_