| OLD | NEW |
| 1 // This file is auto-generated. DO NOT EDIT! | 1 // This file is auto-generated. DO NOT EDIT! |
| 2 | 2 |
| 3 #pragma pack(push, 1) | 3 #pragma pack(push, 1) |
| 4 | 4 |
| 5 struct ActiveTexture { | 5 struct ActiveTexture { |
| 6 typedef ActiveTexture ValueType; | 6 typedef ActiveTexture ValueType; |
| 7 static const CommandId kCmdId = kActiveTexture; | 7 static const CommandId kCmdId = kActiveTexture; |
| 8 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9 | 9 |
| 10 static uint32 ComputeSize() { | 10 static uint32 ComputeSize() { |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 return static_cast<uint32>( | 602 return static_cast<uint32>( |
| 603 sizeof(ValueType) + // NOLINT | 603 sizeof(ValueType) + // NOLINT |
| 604 RoundSizeToMultipleOfEntries(size_in_bytes)); | 604 RoundSizeToMultipleOfEntries(size_in_bytes)); |
| 605 } | 605 } |
| 606 | 606 |
| 607 void SetHeader(uint32 size_in_bytes) { | 607 void SetHeader(uint32 size_in_bytes) { |
| 608 header.SetCmdByTotalSize<ValueType>(size_in_bytes); | 608 header.SetCmdByTotalSize<ValueType>(size_in_bytes); |
| 609 } | 609 } |
| 610 | 610 |
| 611 void Init(GLenum _target, GLsizeiptr _size, GLenum _usage) { | 611 void Init(GLenum _target, GLsizeiptr _size, GLenum _usage) { |
| 612 uint32 total_size = ComputeSize(_size); | 612 uint32 total_size = 0; // TODO(gman): get correct size. |
| 613 SetHeader(total_size); | 613 SetHeader(total_size); |
| 614 target = _target; | 614 target = _target; |
| 615 size = _size; | 615 size = _size; |
| 616 usage = _usage; | 616 usage = _usage; |
| 617 } | 617 } |
| 618 | 618 |
| 619 void* Set(void* cmd, GLenum _target, GLsizeiptr _size, GLenum _usage) { | 619 void* Set(void* cmd, GLenum _target, GLsizeiptr _size, GLenum _usage) { |
| 620 uint32 total_size = ComputeSize(_size); | 620 uint32 total_size = 0; // TODO(gman): get correct size. |
| 621 static_cast<ValueType*>(cmd)->Init(_target, _size, _usage); | 621 static_cast<ValueType*>(cmd)->Init(_target, _size, _usage); |
| 622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 623 } | 623 } |
| 624 | 624 |
| 625 command_buffer::CommandHeader header; | 625 command_buffer::CommandHeader header; |
| 626 uint32 target; | 626 uint32 target; |
| 627 uint32 size; | 627 uint32 size; |
| 628 uint32 usage; | 628 uint32 usage; |
| 629 }; | 629 }; |
| 630 | 630 |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 RoundSizeToMultipleOfEntries(size_in_bytes)); | 1093 RoundSizeToMultipleOfEntries(size_in_bytes)); |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 void SetHeader(uint32 size_in_bytes) { | 1096 void SetHeader(uint32 size_in_bytes) { |
| 1097 header.SetCmdByTotalSize<ValueType>(size_in_bytes); | 1097 header.SetCmdByTotalSize<ValueType>(size_in_bytes); |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 void Init( | 1100 void Init( |
| 1101 GLenum _target, GLint _level, GLenum _internalformat, GLsizei _width, | 1101 GLenum _target, GLint _level, GLenum _internalformat, GLsizei _width, |
| 1102 GLsizei _height, GLint _border, GLsizei _imageSize) { | 1102 GLsizei _height, GLint _border, GLsizei _imageSize) { |
| 1103 uint32 total_size = ComputeSize(_imageSize); | 1103 uint32 total_size = 0; // TODO(gman): get correct size. |
| 1104 SetHeader(total_size); | 1104 SetHeader(total_size); |
| 1105 target = _target; | 1105 target = _target; |
| 1106 level = _level; | 1106 level = _level; |
| 1107 internalformat = _internalformat; | 1107 internalformat = _internalformat; |
| 1108 width = _width; | 1108 width = _width; |
| 1109 height = _height; | 1109 height = _height; |
| 1110 border = _border; | 1110 border = _border; |
| 1111 imageSize = _imageSize; | 1111 imageSize = _imageSize; |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 void* Set( | 1114 void* Set( |
| 1115 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, | 1115 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, |
| 1116 GLsizei _width, GLsizei _height, GLint _border, GLsizei _imageSize) { | 1116 GLsizei _width, GLsizei _height, GLint _border, GLsizei _imageSize) { |
| 1117 uint32 total_size = ComputeSize(_imageSize); | 1117 uint32 total_size = 0; // TODO(gman): get correct size. |
| 1118 static_cast<ValueType*>( | 1118 static_cast<ValueType*>( |
| 1119 cmd)->Init( | 1119 cmd)->Init( |
| 1120 _target, _level, _internalformat, _width, _height, _border, | 1120 _target, _level, _internalformat, _width, _height, _border, |
| 1121 _imageSize); | 1121 _imageSize); |
| 1122 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 1122 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 1123 } | 1123 } |
| 1124 | 1124 |
| 1125 command_buffer::CommandHeader header; | 1125 command_buffer::CommandHeader header; |
| 1126 uint32 target; | 1126 uint32 target; |
| 1127 uint32 level; | 1127 uint32 level; |
| (...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3150 OffsetOf_GetAttachedShaders_maxcount_not_8); | 3150 OffsetOf_GetAttachedShaders_maxcount_not_8); |
| 3151 COMPILE_ASSERT(offsetof(GetAttachedShaders, count_shm_id) == 12, | 3151 COMPILE_ASSERT(offsetof(GetAttachedShaders, count_shm_id) == 12, |
| 3152 OffsetOf_GetAttachedShaders_count_shm_id_not_12); | 3152 OffsetOf_GetAttachedShaders_count_shm_id_not_12); |
| 3153 COMPILE_ASSERT(offsetof(GetAttachedShaders, count_shm_offset) == 16, | 3153 COMPILE_ASSERT(offsetof(GetAttachedShaders, count_shm_offset) == 16, |
| 3154 OffsetOf_GetAttachedShaders_count_shm_offset_not_16); | 3154 OffsetOf_GetAttachedShaders_count_shm_offset_not_16); |
| 3155 COMPILE_ASSERT(offsetof(GetAttachedShaders, shaders_shm_id) == 20, | 3155 COMPILE_ASSERT(offsetof(GetAttachedShaders, shaders_shm_id) == 20, |
| 3156 OffsetOf_GetAttachedShaders_shaders_shm_id_not_20); | 3156 OffsetOf_GetAttachedShaders_shaders_shm_id_not_20); |
| 3157 COMPILE_ASSERT(offsetof(GetAttachedShaders, shaders_shm_offset) == 24, | 3157 COMPILE_ASSERT(offsetof(GetAttachedShaders, shaders_shm_offset) == 24, |
| 3158 OffsetOf_GetAttachedShaders_shaders_shm_offset_not_24); | 3158 OffsetOf_GetAttachedShaders_shaders_shm_offset_not_24); |
| 3159 | 3159 |
| 3160 struct GetAttribLocation { | |
| 3161 typedef GetAttribLocation ValueType; | |
| 3162 static const CommandId kCmdId = kGetAttribLocation; | |
| 3163 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 3164 | |
| 3165 static uint32 ComputeSize() { | |
| 3166 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | |
| 3167 } | |
| 3168 | |
| 3169 void SetHeader() { | |
| 3170 header.SetCmd<ValueType>(); | |
| 3171 } | |
| 3172 | |
| 3173 void Init( | |
| 3174 GLuint _program, uint32 _name_shm_id, uint32 _name_shm_offset, | |
| 3175 uint32 _data_size) { | |
| 3176 SetHeader(); | |
| 3177 program = _program; | |
| 3178 name_shm_id = _name_shm_id; | |
| 3179 name_shm_offset = _name_shm_offset; | |
| 3180 data_size = _data_size; | |
| 3181 } | |
| 3182 | |
| 3183 void* Set( | |
| 3184 void* cmd, GLuint _program, uint32 _name_shm_id, uint32 _name_shm_offset, | |
| 3185 uint32 _data_size) { | |
| 3186 static_cast<ValueType*>( | |
| 3187 cmd)->Init(_program, _name_shm_id, _name_shm_offset, _data_size); | |
| 3188 return NextCmdAddress<ValueType>(cmd); | |
| 3189 } | |
| 3190 | |
| 3191 command_buffer::CommandHeader header; | |
| 3192 uint32 program; | |
| 3193 uint32 name_shm_id; | |
| 3194 uint32 name_shm_offset; | |
| 3195 uint32 data_size; | |
| 3196 }; | |
| 3197 | |
| 3198 COMPILE_ASSERT(sizeof(GetAttribLocation) == 20, | |
| 3199 Sizeof_GetAttribLocation_is_not_20); | |
| 3200 COMPILE_ASSERT(offsetof(GetAttribLocation, header) == 0, | |
| 3201 OffsetOf_GetAttribLocation_header_not_0); | |
| 3202 COMPILE_ASSERT(offsetof(GetAttribLocation, program) == 4, | |
| 3203 OffsetOf_GetAttribLocation_program_not_4); | |
| 3204 COMPILE_ASSERT(offsetof(GetAttribLocation, name_shm_id) == 8, | |
| 3205 OffsetOf_GetAttribLocation_name_shm_id_not_8); | |
| 3206 COMPILE_ASSERT(offsetof(GetAttribLocation, name_shm_offset) == 12, | |
| 3207 OffsetOf_GetAttribLocation_name_shm_offset_not_12); | |
| 3208 COMPILE_ASSERT(offsetof(GetAttribLocation, data_size) == 16, | |
| 3209 OffsetOf_GetAttribLocation_data_size_not_16); | |
| 3210 | |
| 3211 struct GetAttribLocationImmediate { | |
| 3212 typedef GetAttribLocationImmediate ValueType; | |
| 3213 static const CommandId kCmdId = kGetAttribLocationImmediate; | |
| 3214 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | |
| 3215 | |
| 3216 static uint32 ComputeDataSize(const char* s) { | |
| 3217 return strlen(s); | |
| 3218 } | |
| 3219 | |
| 3220 static uint32 ComputeSize(const char* s) { | |
| 3221 return static_cast<uint32>( | |
| 3222 sizeof(ValueType) + ComputeDataSize(s)); // NOLINT | |
| 3223 } | |
| 3224 | |
| 3225 void SetHeader(const char* s) { | |
| 3226 header.SetCmdByTotalSize<ValueType>(ComputeSize(s)); | |
| 3227 } | |
| 3228 | |
| 3229 void Init(GLuint _program, const char* _name) { | |
| 3230 SetHeader(_name); | |
| 3231 program = _program; | |
| 3232 data_size = strlen(_name); | |
| 3233 memcpy(ImmediateDataAddress(this), _name, data_size); | |
| 3234 } | |
| 3235 | |
| 3236 void* Set(void* cmd, GLuint _program, const char* _name) { | |
| 3237 static_cast<ValueType*>(cmd)->Init(_program, _name); | |
| 3238 const uint32 size = ComputeSize(_name); | |
| 3239 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | |
| 3240 } | |
| 3241 | |
| 3242 command_buffer::CommandHeader header; | |
| 3243 uint32 program; | |
| 3244 uint32 data_size; | |
| 3245 }; | |
| 3246 | |
| 3247 COMPILE_ASSERT(sizeof(GetAttribLocationImmediate) == 12, | |
| 3248 Sizeof_GetAttribLocationImmediate_is_not_12); | |
| 3249 COMPILE_ASSERT(offsetof(GetAttribLocationImmediate, header) == 0, | |
| 3250 OffsetOf_GetAttribLocationImmediate_header_not_0); | |
| 3251 COMPILE_ASSERT(offsetof(GetAttribLocationImmediate, program) == 4, | |
| 3252 OffsetOf_GetAttribLocationImmediate_program_not_4); | |
| 3253 COMPILE_ASSERT(offsetof(GetAttribLocationImmediate, data_size) == 8, | |
| 3254 OffsetOf_GetAttribLocationImmediate_data_size_not_8); | |
| 3255 | |
| 3256 struct GetBooleanv { | 3160 struct GetBooleanv { |
| 3257 typedef GetBooleanv ValueType; | 3161 typedef GetBooleanv ValueType; |
| 3258 static const CommandId kCmdId = kGetBooleanv; | 3162 static const CommandId kCmdId = kGetBooleanv; |
| 3259 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3163 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3260 | 3164 |
| 3261 static uint32 ComputeSize() { | 3165 static uint32 ComputeSize() { |
| 3262 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3166 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 3263 } | 3167 } |
| 3264 | 3168 |
| 3265 void SetHeader() { | 3169 void SetHeader() { |
| (...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4171 OffsetOf_GetUniformiv_header_not_0); | 4075 OffsetOf_GetUniformiv_header_not_0); |
| 4172 COMPILE_ASSERT(offsetof(GetUniformiv, program) == 4, | 4076 COMPILE_ASSERT(offsetof(GetUniformiv, program) == 4, |
| 4173 OffsetOf_GetUniformiv_program_not_4); | 4077 OffsetOf_GetUniformiv_program_not_4); |
| 4174 COMPILE_ASSERT(offsetof(GetUniformiv, location) == 8, | 4078 COMPILE_ASSERT(offsetof(GetUniformiv, location) == 8, |
| 4175 OffsetOf_GetUniformiv_location_not_8); | 4079 OffsetOf_GetUniformiv_location_not_8); |
| 4176 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_id) == 12, | 4080 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_id) == 12, |
| 4177 OffsetOf_GetUniformiv_params_shm_id_not_12); | 4081 OffsetOf_GetUniformiv_params_shm_id_not_12); |
| 4178 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_offset) == 16, | 4082 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_offset) == 16, |
| 4179 OffsetOf_GetUniformiv_params_shm_offset_not_16); | 4083 OffsetOf_GetUniformiv_params_shm_offset_not_16); |
| 4180 | 4084 |
| 4181 struct GetUniformLocation { | |
| 4182 typedef GetUniformLocation ValueType; | |
| 4183 static const CommandId kCmdId = kGetUniformLocation; | |
| 4184 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 4185 | |
| 4186 static uint32 ComputeSize() { | |
| 4187 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | |
| 4188 } | |
| 4189 | |
| 4190 void SetHeader() { | |
| 4191 header.SetCmd<ValueType>(); | |
| 4192 } | |
| 4193 | |
| 4194 void Init( | |
| 4195 GLuint _program, uint32 _name_shm_id, uint32 _name_shm_offset, | |
| 4196 uint32 _data_size) { | |
| 4197 SetHeader(); | |
| 4198 program = _program; | |
| 4199 name_shm_id = _name_shm_id; | |
| 4200 name_shm_offset = _name_shm_offset; | |
| 4201 data_size = _data_size; | |
| 4202 } | |
| 4203 | |
| 4204 void* Set( | |
| 4205 void* cmd, GLuint _program, uint32 _name_shm_id, uint32 _name_shm_offset, | |
| 4206 uint32 _data_size) { | |
| 4207 static_cast<ValueType*>( | |
| 4208 cmd)->Init(_program, _name_shm_id, _name_shm_offset, _data_size); | |
| 4209 return NextCmdAddress<ValueType>(cmd); | |
| 4210 } | |
| 4211 | |
| 4212 command_buffer::CommandHeader header; | |
| 4213 uint32 program; | |
| 4214 uint32 name_shm_id; | |
| 4215 uint32 name_shm_offset; | |
| 4216 uint32 data_size; | |
| 4217 }; | |
| 4218 | |
| 4219 COMPILE_ASSERT(sizeof(GetUniformLocation) == 20, | |
| 4220 Sizeof_GetUniformLocation_is_not_20); | |
| 4221 COMPILE_ASSERT(offsetof(GetUniformLocation, header) == 0, | |
| 4222 OffsetOf_GetUniformLocation_header_not_0); | |
| 4223 COMPILE_ASSERT(offsetof(GetUniformLocation, program) == 4, | |
| 4224 OffsetOf_GetUniformLocation_program_not_4); | |
| 4225 COMPILE_ASSERT(offsetof(GetUniformLocation, name_shm_id) == 8, | |
| 4226 OffsetOf_GetUniformLocation_name_shm_id_not_8); | |
| 4227 COMPILE_ASSERT(offsetof(GetUniformLocation, name_shm_offset) == 12, | |
| 4228 OffsetOf_GetUniformLocation_name_shm_offset_not_12); | |
| 4229 COMPILE_ASSERT(offsetof(GetUniformLocation, data_size) == 16, | |
| 4230 OffsetOf_GetUniformLocation_data_size_not_16); | |
| 4231 | |
| 4232 struct GetUniformLocationImmediate { | |
| 4233 typedef GetUniformLocationImmediate ValueType; | |
| 4234 static const CommandId kCmdId = kGetUniformLocationImmediate; | |
| 4235 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | |
| 4236 | |
| 4237 static uint32 ComputeDataSize(const char* s) { | |
| 4238 return strlen(s); | |
| 4239 } | |
| 4240 | |
| 4241 static uint32 ComputeSize(const char* s) { | |
| 4242 return static_cast<uint32>( | |
| 4243 sizeof(ValueType) + ComputeDataSize(s)); // NOLINT | |
| 4244 } | |
| 4245 | |
| 4246 void SetHeader(const char* s) { | |
| 4247 header.SetCmdByTotalSize<ValueType>(ComputeSize(s)); | |
| 4248 } | |
| 4249 | |
| 4250 void Init(GLuint _program, const char* _name) { | |
| 4251 SetHeader(_name); | |
| 4252 program = _program; | |
| 4253 data_size = strlen(_name); | |
| 4254 memcpy(ImmediateDataAddress(this), _name, data_size); | |
| 4255 } | |
| 4256 | |
| 4257 void* Set(void* cmd, GLuint _program, const char* _name) { | |
| 4258 static_cast<ValueType*>(cmd)->Init(_program, _name); | |
| 4259 const uint32 size = ComputeSize(_name); | |
| 4260 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | |
| 4261 } | |
| 4262 | |
| 4263 command_buffer::CommandHeader header; | |
| 4264 uint32 program; | |
| 4265 uint32 data_size; | |
| 4266 }; | |
| 4267 | |
| 4268 COMPILE_ASSERT(sizeof(GetUniformLocationImmediate) == 12, | |
| 4269 Sizeof_GetUniformLocationImmediate_is_not_12); | |
| 4270 COMPILE_ASSERT(offsetof(GetUniformLocationImmediate, header) == 0, | |
| 4271 OffsetOf_GetUniformLocationImmediate_header_not_0); | |
| 4272 COMPILE_ASSERT(offsetof(GetUniformLocationImmediate, program) == 4, | |
| 4273 OffsetOf_GetUniformLocationImmediate_program_not_4); | |
| 4274 COMPILE_ASSERT(offsetof(GetUniformLocationImmediate, data_size) == 8, | |
| 4275 OffsetOf_GetUniformLocationImmediate_data_size_not_8); | |
| 4276 | |
| 4277 struct GetVertexAttribfv { | 4085 struct GetVertexAttribfv { |
| 4278 typedef GetVertexAttribfv ValueType; | 4086 typedef GetVertexAttribfv ValueType; |
| 4279 static const CommandId kCmdId = kGetVertexAttribfv; | 4087 static const CommandId kCmdId = kGetVertexAttribfv; |
| 4280 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4088 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4281 | 4089 |
| 4282 static uint32 ComputeSize() { | 4090 static uint32 ComputeSize() { |
| 4283 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4091 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 4284 } | 4092 } |
| 4285 | 4093 |
| 4286 void SetHeader() { | 4094 void SetHeader() { |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5574 RoundSizeToMultipleOfEntries(size_in_bytes)); | 5382 RoundSizeToMultipleOfEntries(size_in_bytes)); |
| 5575 } | 5383 } |
| 5576 | 5384 |
| 5577 void SetHeader(uint32 size_in_bytes) { | 5385 void SetHeader(uint32 size_in_bytes) { |
| 5578 header.SetCmdByTotalSize<ValueType>(size_in_bytes); | 5386 header.SetCmdByTotalSize<ValueType>(size_in_bytes); |
| 5579 } | 5387 } |
| 5580 | 5388 |
| 5581 void Init( | 5389 void Init( |
| 5582 GLenum _target, GLint _level, GLint _internalformat, GLsizei _width, | 5390 GLenum _target, GLint _level, GLint _internalformat, GLsizei _width, |
| 5583 GLsizei _height, GLint _border, GLenum _format, GLenum _type) { | 5391 GLsizei _height, GLint _border, GLenum _format, GLenum _type) { |
| 5584 uint32 total_size = 0; // TODO(gman): get correct size | 5392 uint32 total_size = 0; // TODO(gman): get correct size. |
| 5585 SetHeader(total_size); | 5393 SetHeader(total_size); |
| 5586 target = _target; | 5394 target = _target; |
| 5587 level = _level; | 5395 level = _level; |
| 5588 internalformat = _internalformat; | 5396 internalformat = _internalformat; |
| 5589 width = _width; | 5397 width = _width; |
| 5590 height = _height; | 5398 height = _height; |
| 5591 border = _border; | 5399 border = _border; |
| 5592 format = _format; | 5400 format = _format; |
| 5593 type = _type; | 5401 type = _type; |
| 5594 } | 5402 } |
| 5595 | 5403 |
| 5596 void* Set( | 5404 void* Set( |
| 5597 void* cmd, GLenum _target, GLint _level, GLint _internalformat, | 5405 void* cmd, GLenum _target, GLint _level, GLint _internalformat, |
| 5598 GLsizei _width, GLsizei _height, GLint _border, GLenum _format, | 5406 GLsizei _width, GLsizei _height, GLint _border, GLenum _format, |
| 5599 GLenum _type) { | 5407 GLenum _type) { |
| 5600 uint32 total_size = 0; // TODO(gman): get correct size | 5408 uint32 total_size = 0; // TODO(gman): get correct size. |
| 5601 static_cast<ValueType*>( | 5409 static_cast<ValueType*>( |
| 5602 cmd)->Init( | 5410 cmd)->Init( |
| 5603 _target, _level, _internalformat, _width, _height, _border, _format, | 5411 _target, _level, _internalformat, _width, _height, _border, _format, |
| 5604 _type); | 5412 _type); |
| 5605 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 5413 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 5606 } | 5414 } |
| 5607 | 5415 |
| 5608 command_buffer::CommandHeader header; | 5416 command_buffer::CommandHeader header; |
| 5609 uint32 target; | 5417 uint32 target; |
| 5610 uint32 level; | 5418 uint32 level; |
| (...skipping 2658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8269 command_buffer::CommandHeader header; | 8077 command_buffer::CommandHeader header; |
| 8270 }; | 8078 }; |
| 8271 | 8079 |
| 8272 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, | 8080 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, |
| 8273 Sizeof_SwapBuffers_is_not_4); | 8081 Sizeof_SwapBuffers_is_not_4); |
| 8274 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, | 8082 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, |
| 8275 OffsetOf_SwapBuffers_header_not_0); | 8083 OffsetOf_SwapBuffers_header_not_0); |
| 8276 | 8084 |
| 8277 #pragma pack(pop) | 8085 #pragma pack(pop) |
| 8278 | 8086 |
| OLD | NEW |