• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef skgpu_graphite_CommandTypes_DEFINED
9 #define skgpu_graphite_CommandTypes_DEFINED
10 
11 #include "include/core/SkRect.h"
12 #include "include/gpu/graphite/GraphiteTypes.h"
13 
14 namespace skgpu::graphite {
15 
16 // specifies a single region for copying, either from buffer to texture, or vice versa
17 struct BufferTextureCopyData {
18     size_t fBufferOffset;
19     size_t fBufferRowBytes;
20     SkIRect fRect;
21     unsigned int fMipLevel;
22 };
23 
24 };  // namespace skgpu::graphite
25 
26 #endif // skgpu_graphite_DrawTypes_DEFINED
27