1 //
2 // Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // formatutils9.h: Queries for GL image formats and their translations to D3D
8 // formats.
9 
10 #ifndef LIBANGLE_RENDERER_D3D_FORMATUTILSD3D_H_
11 #define LIBANGLE_RENDERER_D3D_FORMATUTILSD3D_H_
12 
13 #include "angle_gl.h"
14 
15 #include <cstddef>
16 #include <stdint.h>
17 
18 #include <map>
19 
20 namespace gl
21 {
22 struct FormatType;
23 }
24 
25 namespace rx
26 {
27 typedef void (*VertexCopyFunction)(const uint8_t *input, size_t stride, size_t count, uint8_t *output);
28 
29 enum VertexConversionType
30 {
31     VERTEX_CONVERT_NONE = 0,
32     VERTEX_CONVERT_CPU = 1,
33     VERTEX_CONVERT_GPU = 2,
34     VERTEX_CONVERT_BOTH = 3
35 };
36 }  // namespace rx
37 
38 #endif // LIBANGLE_RENDERER_D3D_FORMATUTILSD3D_H_
39