05d091935a
Add GrD3DTextureInfo and GrD3DBackendSurfaceInfo, and uses those to initialize GrBackendTexture and GrBackendRendertarget. Bug: skia:9935 Change-Id: I4571c1b3aa8115250ff748deb8cf4a95f80f1237 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/278036 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
25 lines
673 B
C
25 lines
673 B
C
/*
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* 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
|
|
|
|
#include "src/gpu/d3d/GrD3D12.h"
|
|
|
|
#include "include/gpu/GrTypes.h"
|
|
|
|
// 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 {
|
|
gr_cp<IDXGIAdapter1> fAdapter;
|
|
gr_cp<ID3D12Device> fDevice;
|
|
gr_cp<ID3D12CommandQueue> fQueue;
|
|
GrProtected fProtectedContext = GrProtected::kNo;
|
|
};
|
|
|
|
#endif
|