ngfx::FilterOp

Inherits from ngfx::DrawOp

Public Functions

Name
FilterOp(GraphicsContext * ctx, Graphics * graphics, uint32_t dstWidth, uint32_t dstHeight)
virtual ~FilterOp()
void apply(GraphicsContext * ctx, CommandBuffer * commandBuffer, Graphics * graphics)

Public Attributes

Name
std::unique_ptr< Texture > outputTexture
std::unique_ptr< Framebuffer > outputFramebuffer

Additional inherited members

Public Functions inherited from ngfx::DrawOp

Name
DrawOp(GraphicsContext * ctx)
virtual ~DrawOp()
virtual void draw(CommandBuffer * commandBuffer, Graphics * graphics) =0

Protected Attributes inherited from ngfx::DrawOp

Name
GraphicsContext * ctx

Public Functions Documentation

function FilterOp

FilterOp(
    GraphicsContext * ctx,
    Graphics * graphics,
    uint32_t dstWidth,
    uint32_t dstHeight
)

Parameters:

  • ctx The graphics context
  • graphics The graphics interface
  • dstWidth The destination width
  • dstHeight The destination height

Create a filter operation

function ~FilterOp

inline virtual ~FilterOp()

Destroy the filter operation

function apply

void apply(
    GraphicsContext * ctx,
    CommandBuffer * commandBuffer,
    Graphics * graphics
)

Parameters:

  • ctx The graphics context
  • commandBuffer The command buffer
  • graphics The graphics interface

Apply the filter

Public Attributes Documentation

variable outputTexture

std::unique_ptr< Texture > outputTexture;

The output texture

variable outputFramebuffer

std::unique_ptr< Framebuffer > outputFramebuffer;

The output framebuffer


Updated on 3 April 2021 at 20:21:51 PDT