mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Metal: split non-trivial objects in their own file.
No functional changes intended, but there are a couple additional cleanups: - Use anonymous namespaces instead of static functions - Don't store an extra Device pointer in objects
This commit is contained in:
committed by
Corentin Wallez
parent
702186e169
commit
0ba5550874
@@ -12,20 +12,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef BACKEND_OPENGL_COMMANDBUFFER_H_
|
||||
#define BACKEND_OPENGL_COMMANDBUFFER_H_
|
||||
#ifndef BACKEND_OPENGL_COMMANDBUFFERGL_H_
|
||||
#define BACKEND_OPENGL_COMMANDBUFFERGL_H_
|
||||
|
||||
#include "common/CommandAllocator.h"
|
||||
#include "common/CommandBuffer.h"
|
||||
|
||||
namespace backend {
|
||||
class CommandBufferBuilder;
|
||||
}
|
||||
|
||||
namespace backend {
|
||||
namespace opengl {
|
||||
|
||||
class Device;
|
||||
class Device;
|
||||
|
||||
class CommandBuffer : public CommandBufferBase {
|
||||
public:
|
||||
@@ -42,4 +38,4 @@ namespace opengl {
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BACKEND_OPENGL_COMMANDBUFFER_H_
|
||||
#endif // BACKEND_OPENGL_COMMANDBUFFERGL_H_
|
||||
|
||||
Reference in New Issue
Block a user