64,637
社区成员
发帖
与我相关
我的任务
分享
class SMAA {
public:
class ExternalStorage;
enum Mode { MODE_SMAA_1X, MODE_SMAA_T2X, MODE_SMAA_S2X, MODE_SMAA_4X };
enum Preset { PRESET_LOW, PRESET_MEDIUM, PRESET_HIGH, PRESET_ULTRA, PRESET_CUSTOM };
enum Input { INPUT_LUMA, INPUT_COLOR, INPUT_DEPTH };
/**
* By default, two render targets will be created for storing
* intermediate calculations. If you have spare render targets,
* search for @EXTERNAL_STORAGE.
*/
SMAA(ID3D10Device *device, int width, int height,
Preset preset = PRESET_HIGH,bool predication = false, bool reprojection = false,
const ExternalStorage &storage=ExternalStorage()); //此处为错误部分
~SMAA();
class ExternalStorage {
public:
ExternalStorage(ID3D10ShaderResourceView *edgesSRV=NULL, //此处为错误部分的类
ID3D10RenderTargetView *edgesRTV=NULL,
ID3D10ShaderResourceView *weightsSRV=NULL,
ID3D10RenderTargetView *weightsRTV=NULL)
: edgesSRV(edgesSRV),
edgesRTV(edgesRTV),
weightsSRV(weightsSRV),
weightsRTV(weightsRTV) {}
ID3D10ShaderResourceView *edgesSRV, *weightsSRV;
ID3D10RenderTargetView *edgesRTV, *weightsRTV;
};