11 #include "ShaderTextureDX.h" 12 #include "cores/RetroPlayer/shaders/IShader.h" 13 #include "cores/VideoPlayer/VideoRenderers/VideoShaders/WinVideoFilter.h" 14 #include "guilib/D3DResource.h" 38 bool Create(
const std::string& shaderSource,
39 const std::string& shaderPath,
40 ShaderParameterMap shaderParameters,
44 unsigned frameCountMod = 0)
override;
46 void SetSizes(
const float2& prevSize,
const float2& nextSize)
override;
47 void PrepareParameters(
CPoint dest[4],
bool isLastPass, uint64_t frameCount)
override;
49 void UpdateMVP()
override;
50 bool CreateInputBuffer()
override;
51 void UpdateInputBuffer(uint64_t frameCount);
54 bool CreateVertexBuffer(
unsigned vertCount,
unsigned vertSize)
override;
62 bool CreateInputLayout(D3D11_INPUT_ELEMENT_DESC* layout,
unsigned numElements);
65 void SetShaderParameters(
CD3DTexture& sourceTexture);
71 XMFLOAT2 texture_size;
74 float frame_direction;
78 std::string m_shaderSource;
81 std::string m_shaderPath;
84 ShaderParameterMap m_shaderParameters;
87 ID3D11SamplerState* m_pSampler =
nullptr;
105 ID3D11Buffer* m_pInputBuffer =
nullptr;
112 unsigned m_frameCountMod = 0;
115 cbInput GetInputData(uint64_t frameCount = 0);
Definition: D3DResource.h:92
Definition: ShaderDX.h:31
Definition: D3DResource.h:176
Definition: WinVideoFilter.h:30
Definition: AudioDecoder.h:18
Definition: RenderContext.h:43
Definition: IShaderTexture.h:15
Definition: ShaderTypes.h:108
Definition: IShaderSampler.h:15