bgfx_set_view_clear_mrt

Set view clear flags with different clear color for each frame buffer texture. Must use bgfx::setPaletteColor to setup clear color palette.

  1. void bgfx_set_view_clear_mrt(bgfx_view_id_t _id, ushort _flags, float _depth, byte _stencil, byte _c0, byte _c1, byte _c2, byte _c3, byte _c4, byte _c5, byte _c6, byte _c7)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_set_view_clear_mrt
    (,
    ushort _flags
    ,
    float _depth
    ,,
    byte _c0
    ,
    byte _c1
    ,
    byte _c2
    ,
    byte _c3
    ,
    byte _c4
    ,
    byte _c5
    ,
    byte _c6
    ,
    byte _c7
    )
  2. da_bgfx_set_view_clear_mrt bgfx_set_view_clear_mrt;

Parameters

_id bgfx_view_id_t

View id.

_flags ushort

Clear flags. Use BGFX_CLEAR_NONE to remove any clear operation. See: BGFX_CLEAR_*.

_depth float

Depth clear value.

_stencil byte

Stencil clear value.

_c0 byte

Palette index for frame buffer attachment 0.

_c1 byte

Palette index for frame buffer attachment 1.

_c2 byte

Palette index for frame buffer attachment 2.

_c3 byte

Palette index for frame buffer attachment 3.

_c4 byte

Palette index for frame buffer attachment 4.

_c5 byte

Palette index for frame buffer attachment 5.

_c6 byte

Palette index for frame buffer attachment 6.

_c7 byte

Palette index for frame buffer attachment 7.

Meta