Interface RenderTarget

All Known Implementing Classes:
RenderTarget.CppProxy

public interface RenderTarget
Class, represents render_target (render pass) interface
  • Method Details

    • getName

      @NonNull String getName()
      Returns:
      render target name (string)
    • setSamplesCount

      void setSamplesCount(int samples)
      Parameters:
      samples - (int) msaa samples counts
    • getSamplesCount

      int getSamplesCount()
      Returns:
      msaa samples counts
    • setExtent

      void setExtent(int width, int height)
      set render target surface extent
      Parameters:
      width - (int): surface width
      height - (int): surface height
    • getWidth

      int getWidth()
      Returns:
      render target width (int)
    • getHeight

      int getHeight()
      Returns:
      render target height (int)
    • setScale

      void setScale(float scale)
      set render target surface extent scale
      Parameters:
      width - (int): surface width scale
      height - (int): surface height scale
    • getScale

      float getScale()
      Returns:
      render target width scale (int)
    • addAttachment

      void addAttachment(@Nullable Image attachment)
      add color or depth attachment to render target
      Parameters:
      attachment - (image): surface attachment
    • removeAttachment

      void removeAttachment(@Nullable Image attachment)
      removes color or depth attachment from render target, if it was aded early
      Parameters:
      attachment - (image): surface attachment
    • getAttachments

      @NonNull ArrayList<Image> getAttachments()
    • requestReadPixel

      void requestReadPixel(int x, int y)
      request reading specific pixel from color attachment at the end of the frame