summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/clear.h
blob: 01849a2cd9067583a83e39d3139c61d0e1121e70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
//  clear.h - View clear info for a BGFX chain entry
//
//============================================================

#pragma once

#ifndef __DRAWBGFX_CLEAR__
#define __DRAWBGFX_CLEAR__

#include <bgfx/bgfx.h>

class clear_state
{
public:
	clear_state(uint64_t flags, uint32_t color, float depth, uint8_t stencil);

	void bind(int view) const;

private:
	const uint64_t  m_flags;
	const uint32_t  m_color;
	const float     m_depth;
	const uint8_t   m_stencil;
};

#endif // __DRAWBGFX_CLEAR__