2020-02-18 19:34:38 +00:00
|
|
|
/*
|
2020-02-24 16:36:15 +00:00
|
|
|
* Copyright 2020 Google LLC
|
2020-02-18 19:34:38 +00:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GrD3DBackendContext_DEFINED
|
|
|
|
#define GrD3DBackendContext_DEFINED
|
|
|
|
|
2020-02-24 16:36:15 +00:00
|
|
|
#include "include/gpu/d3d/GrD3D12.h"
|
|
|
|
|
|
|
|
#include "include/gpu/GrTypes.h"
|
2020-02-18 19:34:38 +00:00
|
|
|
|
|
|
|
// The BackendContext contains all of the base D3D objects needed by the GrD3DGpu. The assumption
|
|
|
|
// is that the client will set these up and pass them to the GrD3DGpu constructor.
|
|
|
|
struct SK_API GrD3DBackendContext {
|
2020-02-24 16:36:15 +00:00
|
|
|
gr_cp<ID3D12Device> fDevice;
|
|
|
|
gr_cp<ID3D12CommandQueue> fQueue;
|
|
|
|
GrProtected fProtectedContext = GrProtected::kNo;
|
2020-02-18 19:34:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|