1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Multiply-included message file, hence no include guard here.
6 #include "gpu/command_buffer/common/capabilities.h"
7 #include "gpu/gpu_export.h"
8 #include "ipc/ipc_message_utils.h"
9 #include "ipc/param_traits_macros.h"
11 #undef IPC_MESSAGE_EXPORT
12 #define IPC_MESSAGE_EXPORT GPU_EXPORT
14 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::ShaderPrecision
)
15 IPC_STRUCT_TRAITS_MEMBER(min_range
)
16 IPC_STRUCT_TRAITS_MEMBER(max_range
)
17 IPC_STRUCT_TRAITS_MEMBER(precision
)
18 IPC_STRUCT_TRAITS_END()
20 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::PerStagePrecisions
)
21 IPC_STRUCT_TRAITS_MEMBER(low_int
)
22 IPC_STRUCT_TRAITS_MEMBER(medium_int
)
23 IPC_STRUCT_TRAITS_MEMBER(high_int
)
24 IPC_STRUCT_TRAITS_MEMBER(low_float
)
25 IPC_STRUCT_TRAITS_MEMBER(medium_float
)
26 IPC_STRUCT_TRAITS_MEMBER(high_float
)
27 IPC_STRUCT_TRAITS_END()
29 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities
)
30 IPC_STRUCT_TRAITS_MEMBER(vertex_shader_precisions
)
31 IPC_STRUCT_TRAITS_MEMBER(fragment_shader_precisions
)
32 IPC_STRUCT_TRAITS_MEMBER(max_combined_texture_image_units
)
33 IPC_STRUCT_TRAITS_MEMBER(max_cube_map_texture_size
)
34 IPC_STRUCT_TRAITS_MEMBER(max_fragment_uniform_vectors
)
35 IPC_STRUCT_TRAITS_MEMBER(max_renderbuffer_size
)
36 IPC_STRUCT_TRAITS_MEMBER(max_texture_image_units
)
37 IPC_STRUCT_TRAITS_MEMBER(max_texture_size
)
38 IPC_STRUCT_TRAITS_MEMBER(max_varying_vectors
)
39 IPC_STRUCT_TRAITS_MEMBER(max_vertex_attribs
)
40 IPC_STRUCT_TRAITS_MEMBER(max_vertex_texture_image_units
)
41 IPC_STRUCT_TRAITS_MEMBER(max_vertex_uniform_vectors
)
42 IPC_STRUCT_TRAITS_MEMBER(num_compressed_texture_formats
)
43 IPC_STRUCT_TRAITS_MEMBER(num_shader_binary_formats
)
44 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource_chromium
)
46 IPC_STRUCT_TRAITS_MEMBER(max_3d_texture_size
)
47 IPC_STRUCT_TRAITS_MEMBER(max_array_texture_layers
)
48 IPC_STRUCT_TRAITS_MEMBER(max_color_attachments
)
49 IPC_STRUCT_TRAITS_MEMBER(max_combined_fragment_uniform_components
)
50 IPC_STRUCT_TRAITS_MEMBER(max_combined_uniform_blocks
)
51 IPC_STRUCT_TRAITS_MEMBER(max_combined_vertex_uniform_components
)
52 IPC_STRUCT_TRAITS_MEMBER(max_draw_buffers
)
53 IPC_STRUCT_TRAITS_MEMBER(max_element_index
)
54 IPC_STRUCT_TRAITS_MEMBER(max_elements_indices
)
55 IPC_STRUCT_TRAITS_MEMBER(max_elements_vertices
)
56 IPC_STRUCT_TRAITS_MEMBER(max_fragment_input_components
)
57 IPC_STRUCT_TRAITS_MEMBER(max_fragment_uniform_blocks
)
58 IPC_STRUCT_TRAITS_MEMBER(max_fragment_uniform_components
)
59 IPC_STRUCT_TRAITS_MEMBER(max_program_texel_offset
)
60 IPC_STRUCT_TRAITS_MEMBER(max_samples
)
61 IPC_STRUCT_TRAITS_MEMBER(max_server_wait_timeout
)
62 IPC_STRUCT_TRAITS_MEMBER(max_texture_lod_bias
)
63 IPC_STRUCT_TRAITS_MEMBER(max_transform_feedback_interleaved_components
)
64 IPC_STRUCT_TRAITS_MEMBER(max_transform_feedback_separate_attribs
)
65 IPC_STRUCT_TRAITS_MEMBER(max_transform_feedback_separate_components
)
66 IPC_STRUCT_TRAITS_MEMBER(max_uniform_block_size
)
67 IPC_STRUCT_TRAITS_MEMBER(max_uniform_buffer_bindings
)
68 IPC_STRUCT_TRAITS_MEMBER(max_varying_components
)
69 IPC_STRUCT_TRAITS_MEMBER(max_vertex_output_components
)
70 IPC_STRUCT_TRAITS_MEMBER(max_vertex_uniform_blocks
)
71 IPC_STRUCT_TRAITS_MEMBER(max_vertex_uniform_components
)
72 IPC_STRUCT_TRAITS_MEMBER(min_program_texel_offset
)
73 IPC_STRUCT_TRAITS_MEMBER(num_extensions
)
74 IPC_STRUCT_TRAITS_MEMBER(num_program_binary_formats
)
75 IPC_STRUCT_TRAITS_MEMBER(uniform_buffer_offset_alignment
)
77 IPC_STRUCT_TRAITS_MEMBER(post_sub_buffer
)
78 IPC_STRUCT_TRAITS_MEMBER(egl_image_external
)
79 IPC_STRUCT_TRAITS_MEMBER(texture_format_atc
)
80 IPC_STRUCT_TRAITS_MEMBER(texture_format_bgra8888
)
81 IPC_STRUCT_TRAITS_MEMBER(texture_format_dxt1
)
82 IPC_STRUCT_TRAITS_MEMBER(texture_format_dxt5
)
83 IPC_STRUCT_TRAITS_MEMBER(texture_format_etc1
)
84 IPC_STRUCT_TRAITS_MEMBER(texture_format_etc1_npot
)
85 IPC_STRUCT_TRAITS_MEMBER(texture_rectangle
)
86 IPC_STRUCT_TRAITS_MEMBER(iosurface
)
87 IPC_STRUCT_TRAITS_MEMBER(texture_usage
)
88 IPC_STRUCT_TRAITS_MEMBER(texture_storage
)
89 IPC_STRUCT_TRAITS_MEMBER(discard_framebuffer
)
90 IPC_STRUCT_TRAITS_MEMBER(sync_query
)
91 IPC_STRUCT_TRAITS_MEMBER(image
)
92 IPC_STRUCT_TRAITS_MEMBER(future_sync_points
)
93 IPC_STRUCT_TRAITS_MEMBER(blend_equation_advanced
)
94 IPC_STRUCT_TRAITS_MEMBER(blend_equation_advanced_coherent
)
95 IPC_STRUCT_TRAITS_MEMBER(texture_rg
)
97 IPC_STRUCT_TRAITS_MEMBER(major_version
)
98 IPC_STRUCT_TRAITS_MEMBER(minor_version
)
99 IPC_STRUCT_TRAITS_END()