Skylicht Engine
Loading...
Searching...
No Matches
IRWBuffer.h
1// Copyright (C) 2020 Pham Hong Duc
2// This file is part of the "Skylicht Engine"
3// Upgrade GPU Compute Shader feature
4
5#ifndef __IRR_IRW_BUFFER_H_INCLUDED__
6#define __IRR_IRW_BUFFER_H_INCLUDED__
7
8#include "IrrCompileConfig.h"
9
10#include "IReferenceCounted.h"
11#include "EDriverTypes.h"
12
13namespace irr
14{
15 namespace video
16 {
17 class IRWBuffer : public virtual IReferenceCounted
18 {
19 public:
20 IRWBuffer(ECOLOR_FORMAT format, u32 numElements) :
21 DriverType(EDT_NULL),
22 Format(format),
23 NumElements(numElements)
24 {
25 }
26
27 E_DRIVER_TYPE getDriverType() const { return DriverType; };
28
29 virtual void* lock(bool readOnly) = 0;
30
31 virtual void unlock() = 0;
32
33 protected:
34
35 E_DRIVER_TYPE DriverType;
36 ECOLOR_FORMAT Format;
37 u32 NumElements;
38 };
39 }
40}
41
42#endif
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:50
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
ECOLOR_FORMAT
An enum for the color format of textures used by the Irrlicht Engine.
Definition SColor.h:18
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition EDriverTypes.h:15
@ EDT_NULL
Null driver, useful for applications to run the engine without visualisation.
Definition EDriverTypes.h:19
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58