00001 #pragma once 00002 00003 #include "shader_postprocess.h" 00004 #include "texturecache.h" 00005 00006 class Shader_FinalPass : public Shader_Postprocess 00007 { 00008 private: 00009 struct 00010 { 00011 ID3D10EffectScalarVariable* brightness; 00012 } variables; 00013 00014 00015 public: 00016 bool compile(const D3D10_SHADER_MACRO *macros, DWORD shaderFlags); 00017 Shader_FinalPass(ID3D10Device *device); 00018 bool createRenderTargetViews(ID3D10RenderTargetView *backbuffer, const DXGI_SWAP_CHAIN_DESC &swapChainDesc, int multiSampleCount); 00019 void releaseRenderTargetViews(); 00020 void setBrightness(float brightness) const; 00021 };