forked from prototype99/dsfix
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFXAA.h
More file actions
21 lines (21 loc) · 669 Bytes
/
FXAA.h
File metadata and controls
21 lines (21 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <dxgi.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <dxerr.h>
#include "Effect.h"
class FXAA : public Effect {
public:
enum Quality { QualityLow, QualityMedium, QualityHigh, QualityUltra };
FXAA(IDirect3DDevice9 *device, int width, int height, Quality quality);
virtual ~FXAA();
void go(IDirect3DTexture9 *frame, IDirect3DSurface9 *dst);
private:
int width, height;
ID3DXEffect *effect;
IDirect3DTexture9* buffer1Tex;
IDirect3DSurface9* buffer1Surf;
D3DXHANDLE frameTexHandle;
void lumaPass(IDirect3DTexture9 *frame, IDirect3DSurface9 *dst);
void fxaaPass(IDirect3DTexture9 *src, IDirect3DSurface9* dst);
};