| 47 | EdgesRenderParams() : TBase(gpu::Program::SmaaEdges) {} |
| 48 | |
| 49 | void SetParams(ref_ptr<dp::Texture> texture, uint32_t width, uint32_t height) |
| 50 | { |
| 51 | m_state.SetTexture("u_colorTex", texture); |
| 52 | |
| 53 | m_params.m_framebufferMetrics = |
| 54 | glsl::vec4(1.0f / width, 1.0f / height, static_cast<float>(width), static_cast<float>(height)); |
| 55 | } |
| 56 | }; |
| 57 | |
| 58 | class BlendingWeightRenderParams : public SMAABaseRenderParams |