Skip to content

Commit a935c47

Browse files
committed
update SMAA
1 parent c9ffe93 commit a935c47

18 files changed

+2278
-2104
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@ add_library(dsfix
4444
dinput.cpp
4545
dinput8.def
4646
dsfix.rc
47-
Effect.cpp
4847
FPS.cpp
4948
FXAA.cpp
5049
GAUSS.cpp
5150
main.cpp
5251
memory.cpp
5352
RenderstateManager.cpp
5453
Settings.cpp
55-
SMAA.cpp
54+
SMAA/SMAA.cpp
5655
SSAO.cpp
5756
ui.cpp
5857
util.cpp

DATA/dsfix/SMAA.h

Lines changed: 0 additions & 1291 deletions
This file was deleted.

Effect.cpp

Lines changed: 0 additions & 6 deletions
This file was deleted.

Effect.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,8 @@ class Effect {
1212
protected:
1313
Microsoft::WRL::ComPtr<IDirect3DDevice9> device;
1414
Microsoft::WRL::ComPtr<IDirect3DVertexDeclaration9> vertexDeclaration;
15-
static const D3DVERTEXELEMENT9 vertexElements[3];
1615

17-
Effect(IDirect3DDevice9* device) noexcept : device(device) {
18-
try {
19-
ThrowIfFailed(device->CreateVertexDeclaration(vertexElements, &vertexDeclaration));
20-
} catch (const std::system_error& err) {
21-
spdlog::error(L"{}", DXGetErrorString9W(err.code().value()));
22-
}
23-
}
16+
Effect(IDirect3DDevice9* device) noexcept : device(device) {}
2417

2518
virtual ~Effect() = default;
2619

RenderstateManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "FPS.h"
33
#include "FXAA.h"
44
#include "GAUSS.h"
5-
#include "SMAA.h"
5+
#include "SMAA/SMAA.h"
66
#include "SSAO.h"
77
#include "Settings.h"
88
#include "WindowManager.h"

RenderstateManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "FXAA.h"
33
#include "GAUSS.h"
4-
#include "SMAA.h"
4+
#include "SMAA/SMAA.h"
55
#include "SSAO.h"
66
#include <array>
77
#include <memory>

SMAA.cpp

Lines changed: 0 additions & 260 deletions
This file was deleted.

0 commit comments

Comments
 (0)