123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262 |
- //! \file
- //!
- //! The public interface for 3D graphics is based on a command buffer.
- //!
- //! This was chosen because it provides an easy way to separate the process of
- //! writing commands from the process of reading those commands without
- //! requiring too much overhead to keep the two processes in sync.
- //!
- //! You can use this info to write commands yourself. Most developers will use
- //! the provided OpenGL ES 2.0 implementation that issues these commands for
- //! them.
- //!
- //! Each command starts with a header. The header is 32 bits, where the first 21
- //! bits define the number of 32 bit entries, including the header, the command
- //! represents. The last 11 bits specify the command.
- //!
- //! Commands that send a variable amount of data have 1 to 3 ways to send that
- //! data.
- //!
- //! Many commands can send their data in shared memory. The command will take
- //! an id of the shared memory and an offset into that shared memory of where
- //! the data lives. Commands are executed asynchronously, so the client
- //! program must be careful to leave the data available until the command has
- //! executed.
- //!
- //! Some commands have an 'immediate' version where the data appears directly
- //! after the command in memory.
- //!
- //! A 3rd way of passing data is through Buckets. Buckets are identified by
- //! number. You create a bucket with the command SetBucketSize, you can then
- //! fill the bucket with SetBucketData commands. Once you've sent all your
- //! data you can then issue a command that uses the bucket and takes a bucket
- //! id for which bucket to use.
- //!
- //! Receiving data works similarly. Some commands return their data to shared
- //! memory. Other commands return their data through buckets which can then be
- //! queried with the GetBucketSize and GetBucketData commands. In either case
- //! the data will not be available until the command executes.
- //!
- //! All commands and arguments are validated. If a command fails validation the
- //! service will stop processing commands. It is the responsibility of the
- //! client to never issue an invalid command.
- //!
- //! Examples of invalid commands.
- //! - A command's size does not match the command.
- //! - A command's size would address memory outside the command buffer
- //! - A shared memory id is invalid
- //! - A shared memory offset is out of range for the given shared memory
- //! - The size of the data a command would access in shared memory is out of
- //! range for the given shared memory buffer.
- //! - A result (in the transfer buffer) is not initialized to the
- //! failure case. For example, any command that returns a SizedResult
- //! will take a shared memory id and offset to where to store the result.
- //! That size field of the result must be set to 0 before issuing the
- //! the command. That way, if the command buffer service fails the
- //! client will see a 0 size.
- //!
- //! The docs are a little terse. For any command that corresponds to an OpenGL
- //! ES 2.0 function the arguments should be clear by looking at the OpenGL ES
- //! 2.0 documentation with minor caveats.
- //!
- //! - Client side arrays are not supported at the command buffer level
- //! so DrawArrays and VertexAttribPointer only take offsets into buffers.
- //! - The commands GenBuffers, GetTextures, CreateProgram, CreateShader, etc
- //! take client side ids and register them with the service. It's up to the
- //! client to make up the ids.
- //! - For shared resources, it's still up to the client to make up ids.
- //! but to help keep them in sync with other threads the commands
- //! GenSharedIds, RegisterSharedIds and DeleteSharedIds can be used.
- //!
- //! The command header.
- struct CommandHeader {
- Uint32 size:21;
- Uint32 command:11;
- };
- //! Used for some glGetXXX commands that return a result through a pointer. We
- //! need to know if the command succeeded or not and the size of the result. If
- //! the command failed its result size will 0. You must set the size to 0
- //! before issuing the command.
- //!
- //! To retrieve the data you might do something like this pseudo code:
- //!
- //! GetAttachedShaders::Result* result = address-of-shared-memory
- //! int num_results = result->size / sizeof(GLuint); // the type returned
- //! GLuint* results = &result->data;
- //! for (int ii = 0; ii < num_results; ++ii) {
- //! printf("%d\n", results[ii]);
- //! }
- //!
- template <typename T>
- struct SizedResult {
- uint32 size; // in bytes.
- T data; // this is just here to get an offset.
- };
- //! A Noop command.
- struct Noop {
- static const CommandId kCmdId = 0;
- CommandHeader header;
- };
- //! The SetToken command puts a token in the command stream that you can
- //! use to check if that token has been passed in the command stream.
- struct SetToken {
- static const CommandId kCmdId = 1;
- CommandHeader header;
- uint32 token;
- };
- //! The Jump command jumps to another place in the command buffer.
- struct Jump {
- static const CommandId kCmdId = 3;
- CommandHeader header;
- uint32 offset;
- };
- //! The JumpRelative command jumps to another place in the command buffer
- //! relative to the end of this command. In other words. JumpRelative with an
- //! offset of zero is effectively a no-op.
- struct JumpRelative {
- static const CommandId kCmdId = 4;
- CommandHeader header;
- int32 offset;
- };
- //! The Call command jumps to a subroutine which can be returned from with the
- //! Return command.
- struct Call {
- static const CommandId kCmdId = 5;
- CommandHeader header;
- uint32 offset;
- };
- //! The CallRelative command jumps to a subroutine using a relative offset. The
- //! offset is relative to the end of this command..
- struct CallRelative {
- static const CommandId kCmdId = 6;
- CommandHeader header;
- int32 offset;
- };
- //! Returns from a subroutine called by the Call or CallRelative commands.
- struct Return {
- static const CommandId kCmdId = 7;
- CommandHeader header;
- };
- //! Sets the size of a bucket for collecting data on the service side.
- //! This is a utility for gathering data on the service side so it can be used
- //! all at once when some service side API is called. It removes the need to
- //! add special commands just to support a particular API. For example, any API
- //! command that needs a string needs a way to send that string to the API over
- //! the command buffers. While you can require that the command buffer or
- //! transfer buffer be large enough to hold the largest string you can send,
- //! using this command removes that restriction by letting you send smaller
- //! pieces over and build up the data on the service side.
- //!
- //! You can clear a bucket on the service side and thereby free memory by
- //! sending a size of 0.
- struct SetBucketSize {
- static const CommandId kCmdId = 8;
- CommandHeader header;
- uint32 bucket_id;
- uint32 size;
- };
- //! Sets the contents of a portion of a bucket on the service side from data in
- //! shared memory.
- //! See SetBucketSize.
- struct SetBucketData {
- static const CommandId kCmdId = 9;
- CommandHeader header;
- uint32 bucket_id;
- uint32 offset;
- uint32 size;
- uint32 shared_memory_id;
- uint32 shared_memory_offset;
- };
- //! Sets the contents of a portion of a bucket on the service side from data in
- //! the command buffer.
- //! See SetBucketSize.
- struct SetBucketDataImmediate {
- static const CommandId kCmdId = 10;
- CommandHeader header;
- uint32 bucket_id;
- uint32 offset;
- uint32 size;
- };
- //! Gets the size of a bucket the service has available. Sending a variable
- //! size result back to the client, for example any API that returns a string,
- //! is problematic since the largest thing you can send back is the size of
- //! your shared memory. This command along with GetBucketData implements a way
- //! to get a result a piece at a time to help solve that problem in a generic
- //! way.
- struct GetBucketSize {
- static const CommandId kCmdId = 11;
- typedef uint32 Result;
- CommandHeader header;
- uint32 bucket_id;
- uint32 shared_memory_id;
- uint32 shared_memory_offset;
- };
- //! Gets a piece of a result the service has available.
- //! See GetBucketSize.
- struct GetBucketData {
- static const CommandId kCmdId = 12;
- CommandHeader header;
- uint32 bucket_id;
- uint32 offset;
- uint32 size;
- uint32 shared_memory_id;
- uint32 shared_memory_offset;
- };
- // OpenGL ES 2.0 related commands.
- //! Command that corresponds to glActiveTexture.
- struct ActiveTexture {
- static const CommandId kCmdId = 256;
- CommandHeader header;
- uint32 texture; //!< GLenum
- };
- //! Command that corresponds to glAttachShader.
- struct AttachShader {
- static const CommandId kCmdId = 257;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 shader; //!< GLuint
- };
- //! Command that corresponds to glBindAttribLocation.
- struct BindAttribLocation {
- static const CommandId kCmdId = 258;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 index; //!< GLuint
- uint32 name_shm_id; //!< uint32
- uint32 name_shm_offset; //!< uint32
- uint32 data_size; //!< uint32
- };
- //! Immediate version of command that corresponds to glBindAttribLocation.
- struct BindAttribLocationImmediate {
- static const CommandId kCmdId = 259;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 index; //!< GLuint
- uint32 data_size; //!< uint32
- };
- //! Bucket version of command that corresponds to glBindAttribLocation.
- struct BindAttribLocationBucket {
- static const CommandId kCmdId = 432;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 index; //!< GLuint
- uint32 name_bucket_id; //!< uint32
- };
- //! Command that corresponds to glBindBuffer.
- struct BindBuffer {
- static const CommandId kCmdId = 260;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 buffer; //!< GLuint
- };
- //! Command that corresponds to glBindFramebuffer.
- struct BindFramebuffer {
- static const CommandId kCmdId = 261;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 framebuffer; //!< GLuint
- };
- //! Command that corresponds to glBindRenderbuffer.
- struct BindRenderbuffer {
- static const CommandId kCmdId = 262;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 renderbuffer; //!< GLuint
- };
- //! Command that corresponds to glBindTexture.
- struct BindTexture {
- static const CommandId kCmdId = 263;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 texture; //!< GLuint
- };
- //! Command that corresponds to glBlendColor.
- struct BlendColor {
- static const CommandId kCmdId = 264;
- CommandHeader header;
- float red; //!< GLclampf
- float green; //!< GLclampf
- float blue; //!< GLclampf
- float alpha; //!< GLclampf
- };
- //! Command that corresponds to glBlendEquation.
- struct BlendEquation {
- static const CommandId kCmdId = 265;
- CommandHeader header;
- uint32 mode; //!< GLenum
- };
- //! Command that corresponds to glBlendEquationSeparate.
- struct BlendEquationSeparate {
- static const CommandId kCmdId = 266;
- CommandHeader header;
- uint32 modeRGB; //!< GLenum
- uint32 modeAlpha; //!< GLenum
- };
- //! Command that corresponds to glBlendFunc.
- struct BlendFunc {
- static const CommandId kCmdId = 267;
- CommandHeader header;
- uint32 sfactor; //!< GLenum
- uint32 dfactor; //!< GLenum
- };
- //! Command that corresponds to glBlendFuncSeparate.
- struct BlendFuncSeparate {
- static const CommandId kCmdId = 268;
- CommandHeader header;
- uint32 srcRGB; //!< GLenum
- uint32 dstRGB; //!< GLenum
- uint32 srcAlpha; //!< GLenum
- uint32 dstAlpha; //!< GLenum
- };
- //! Command that corresponds to glBufferData.
- struct BufferData {
- static const CommandId kCmdId = 269;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 size; //!< GLsizeiptr
- uint32 data_shm_id; //!< uint32
- uint32 data_shm_offset; //!< uint32
- uint32 usage; //!< GLenum
- };
- //! Immediate version of command that corresponds to glBufferData.
- struct BufferDataImmediate {
- static const CommandId kCmdId = 270;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 size; //!< GLsizeiptr
- uint32 usage; //!< GLenum
- };
- //! Command that corresponds to glBufferSubData.
- struct BufferSubData {
- static const CommandId kCmdId = 271;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 offset; //!< GLintptr
- int32 size; //!< GLsizeiptr
- uint32 data_shm_id; //!< uint32
- uint32 data_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glBufferSubData.
- struct BufferSubDataImmediate {
- static const CommandId kCmdId = 272;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 offset; //!< GLintptr
- int32 size; //!< GLsizeiptr
- };
- //! Command that corresponds to glCheckFramebufferStatus.
- struct CheckFramebufferStatus {
- static const CommandId kCmdId = 273;
- typedef GLenum Result;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glClear.
- struct Clear {
- static const CommandId kCmdId = 274;
- CommandHeader header;
- uint32 mask; //!< GLbitfield
- };
- //! Command that corresponds to glClearColor.
- struct ClearColor {
- static const CommandId kCmdId = 275;
- CommandHeader header;
- float red; //!< GLclampf
- float green; //!< GLclampf
- float blue; //!< GLclampf
- float alpha; //!< GLclampf
- };
- //! Command that corresponds to glClearDepthf.
- struct ClearDepthf {
- static const CommandId kCmdId = 276;
- CommandHeader header;
- float depth; //!< GLclampf
- };
- //! Command that corresponds to glClearStencil.
- struct ClearStencil {
- static const CommandId kCmdId = 277;
- CommandHeader header;
- int32 s; //!< GLint
- };
- //! Command that corresponds to glColorMask.
- struct ColorMask {
- static const CommandId kCmdId = 278;
- CommandHeader header;
- uint32 red; //!< GLboolean
- uint32 green; //!< GLboolean
- uint32 blue; //!< GLboolean
- uint32 alpha; //!< GLboolean
- };
- //! Command that corresponds to glCompileShader.
- struct CompileShader {
- static const CommandId kCmdId = 279;
- CommandHeader header;
- uint32 shader; //!< GLuint
- };
- //! Command that corresponds to glCompressedTexImage2D.
- struct CompressedTexImage2D {
- static const CommandId kCmdId = 280;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- uint32 internalformat; //!< GLenum
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- int32 border; //!< GLint
- int32 imageSize; //!< GLsizei
- uint32 data_shm_id; //!< uint32
- uint32 data_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glCompressedTexImage2D.
- struct CompressedTexImage2DImmediate {
- static const CommandId kCmdId = 281;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- uint32 internalformat; //!< GLenum
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- int32 border; //!< GLint
- int32 imageSize; //!< GLsizei
- };
- //! Bucket version of command that corresponds to glCompressedTexImage2D.
- struct CompressedTexImage2DBucket {
- static const CommandId kCmdId = 443;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- uint32 internalformat; //!< GLenum
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- int32 border; //!< GLint
- uint32 bucket_id; //!< GLuint
- };
- //! Command that corresponds to glCompressedTexSubImage2D.
- struct CompressedTexSubImage2D {
- static const CommandId kCmdId = 282;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 xoffset; //!< GLint
- int32 yoffset; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- uint32 format; //!< GLenum
- int32 imageSize; //!< GLsizei
- uint32 data_shm_id; //!< uint32
- uint32 data_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glCompressedTexSubImage2D.
- struct CompressedTexSubImage2DImmediate {
- static const CommandId kCmdId = 283;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 xoffset; //!< GLint
- int32 yoffset; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- uint32 format; //!< GLenum
- int32 imageSize; //!< GLsizei
- };
- //! Bucket version of command that corresponds to glCompressedTexSubImage2D.
- struct CompressedTexSubImage2DBucket {
- static const CommandId kCmdId = 444;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 xoffset; //!< GLint
- int32 yoffset; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- uint32 format; //!< GLenum
- uint32 bucket_id; //!< GLuint
- };
- //! Command that corresponds to glCopyTexImage2D.
- struct CopyTexImage2D {
- static const CommandId kCmdId = 284;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- uint32 internalformat; //!< GLenum
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- int32 border; //!< GLint
- };
- //! Command that corresponds to glCopyTexSubImage2D.
- struct CopyTexSubImage2D {
- static const CommandId kCmdId = 285;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 xoffset; //!< GLint
- int32 yoffset; //!< GLint
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- };
- //! Command that corresponds to glCreateProgram.
- struct CreateProgram {
- static const CommandId kCmdId = 286;
- CommandHeader header;
- uint32 client_id; //!< uint32
- };
- //! Command that corresponds to glCreateShader.
- struct CreateShader {
- static const CommandId kCmdId = 287;
- CommandHeader header;
- uint32 type; //!< GLenum
- uint32 client_id; //!< uint32
- };
- //! Command that corresponds to glCullFace.
- struct CullFace {
- static const CommandId kCmdId = 288;
- CommandHeader header;
- uint32 mode; //!< GLenum
- };
- //! Command that corresponds to glDeleteBuffers.
- struct DeleteBuffers {
- static const CommandId kCmdId = 289;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 buffers_shm_id; //!< uint32
- uint32 buffers_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glDeleteBuffers.
- struct DeleteBuffersImmediate {
- static const CommandId kCmdId = 290;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glDeleteFramebuffers.
- struct DeleteFramebuffers {
- static const CommandId kCmdId = 291;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 framebuffers_shm_id; //!< uint32
- uint32 framebuffers_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glDeleteFramebuffers.
- struct DeleteFramebuffersImmediate {
- static const CommandId kCmdId = 292;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glDeleteProgram.
- struct DeleteProgram {
- static const CommandId kCmdId = 293;
- CommandHeader header;
- uint32 program; //!< GLuint
- };
- //! Command that corresponds to glDeleteRenderbuffers.
- struct DeleteRenderbuffers {
- static const CommandId kCmdId = 294;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 renderbuffers_shm_id; //!< uint32
- uint32 renderbuffers_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glDeleteRenderbuffers.
- struct DeleteRenderbuffersImmediate {
- static const CommandId kCmdId = 295;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glDeleteShader.
- struct DeleteShader {
- static const CommandId kCmdId = 296;
- CommandHeader header;
- uint32 shader; //!< GLuint
- };
- //! Command that corresponds to glDeleteTextures.
- struct DeleteTextures {
- static const CommandId kCmdId = 297;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 textures_shm_id; //!< uint32
- uint32 textures_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glDeleteTextures.
- struct DeleteTexturesImmediate {
- static const CommandId kCmdId = 298;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glDepthFunc.
- struct DepthFunc {
- static const CommandId kCmdId = 299;
- CommandHeader header;
- uint32 func; //!< GLenum
- };
- //! Command that corresponds to glDepthMask.
- struct DepthMask {
- static const CommandId kCmdId = 300;
- CommandHeader header;
- uint32 flag; //!< GLboolean
- };
- //! Command that corresponds to glDepthRangef.
- struct DepthRangef {
- static const CommandId kCmdId = 301;
- CommandHeader header;
- float zNear; //!< GLclampf
- float zFar; //!< GLclampf
- };
- //! Command that corresponds to glDetachShader.
- struct DetachShader {
- static const CommandId kCmdId = 302;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 shader; //!< GLuint
- };
- //! Command that corresponds to glDisable.
- struct Disable {
- static const CommandId kCmdId = 303;
- CommandHeader header;
- uint32 cap; //!< GLenum
- };
- //! Command that corresponds to glDisableVertexAttribArray.
- struct DisableVertexAttribArray {
- static const CommandId kCmdId = 304;
- CommandHeader header;
- uint32 index; //!< GLuint
- };
- //! Command that corresponds to glDrawArrays.
- struct DrawArrays {
- static const CommandId kCmdId = 305;
- CommandHeader header;
- uint32 mode; //!< GLenum
- int32 first; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glDrawElements.
- struct DrawElements {
- static const CommandId kCmdId = 306;
- CommandHeader header;
- uint32 mode; //!< GLenum
- int32 count; //!< GLsizei
- uint32 type; //!< GLenum
- uint32 index_offset; //!< GLuint
- };
- //! Command that corresponds to glEnable.
- struct Enable {
- static const CommandId kCmdId = 307;
- CommandHeader header;
- uint32 cap; //!< GLenum
- };
- //! Command that corresponds to glEnableVertexAttribArray.
- struct EnableVertexAttribArray {
- static const CommandId kCmdId = 308;
- CommandHeader header;
- uint32 index; //!< GLuint
- };
- //! Command that corresponds to glFinish.
- struct Finish {
- static const CommandId kCmdId = 309;
- CommandHeader header;
- };
- //! Command that corresponds to glFlush.
- struct Flush {
- static const CommandId kCmdId = 310;
- CommandHeader header;
- };
- //! Command that corresponds to glFramebufferRenderbuffer.
- struct FramebufferRenderbuffer {
- static const CommandId kCmdId = 311;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 attachment; //!< GLenum
- uint32 renderbuffertarget; //!< GLenum
- uint32 renderbuffer; //!< GLuint
- };
- //! Command that corresponds to glFramebufferTexture2D.
- struct FramebufferTexture2D {
- static const CommandId kCmdId = 312;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 attachment; //!< GLenum
- uint32 textarget; //!< GLenum
- uint32 texture; //!< GLuint
- int32 level; //!< GLint
- };
- //! Command that corresponds to glFrontFace.
- struct FrontFace {
- static const CommandId kCmdId = 313;
- CommandHeader header;
- uint32 mode; //!< GLenum
- };
- //! Command that corresponds to glGenBuffers.
- struct GenBuffers {
- static const CommandId kCmdId = 314;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 buffers_shm_id; //!< uint32
- uint32 buffers_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glGenBuffers.
- struct GenBuffersImmediate {
- static const CommandId kCmdId = 315;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glGenerateMipmap.
- struct GenerateMipmap {
- static const CommandId kCmdId = 316;
- CommandHeader header;
- uint32 target; //!< GLenum
- };
- //! Command that corresponds to glGenFramebuffers.
- struct GenFramebuffers {
- static const CommandId kCmdId = 317;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 framebuffers_shm_id; //!< uint32
- uint32 framebuffers_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glGenFramebuffers.
- struct GenFramebuffersImmediate {
- static const CommandId kCmdId = 318;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glGenRenderbuffers.
- struct GenRenderbuffers {
- static const CommandId kCmdId = 319;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 renderbuffers_shm_id; //!< uint32
- uint32 renderbuffers_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glGenRenderbuffers.
- struct GenRenderbuffersImmediate {
- static const CommandId kCmdId = 320;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glGenTextures.
- struct GenTextures {
- static const CommandId kCmdId = 321;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 textures_shm_id; //!< uint32
- uint32 textures_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glGenTextures.
- struct GenTexturesImmediate {
- static const CommandId kCmdId = 322;
- CommandHeader header;
- int32 n; //!< GLsizei
- };
- //! Command that corresponds to glGetActiveAttrib.
- struct GetActiveAttrib {
- static const CommandId kCmdId = 323;
- struct Result {
- int32 success;
- int32 size;
- uint32 type;
- };
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 index; //!< GLuint
- uint32 name_bucket_id; //!< uint32
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetActiveUniform.
- struct GetActiveUniform {
- static const CommandId kCmdId = 324;
- struct Result {
- int32 success;
- int32 size;
- uint32 type;
- };
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 index; //!< GLuint
- uint32 name_bucket_id; //!< uint32
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetAttachedShaders.
- struct GetAttachedShaders {
- static const CommandId kCmdId = 325;
- typedef SizedResult<GLuint> Result;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- uint32 result_size; //!< uint32
- };
- //! Command that corresponds to glGetAttribLocation.
- struct GetAttribLocation {
- static const CommandId kCmdId = 326;
- typedef GLint Result;
- CommandHeader header;
- uint32 program;
- uint32 name_shm_id;
- uint32 name_shm_offset;
- uint32 location_shm_id;
- uint32 location_shm_offset;
- uint32 data_size;
- };
- //! Immediate version of command that corresponds to glGetAttribLocation.
- struct GetAttribLocationImmediate {
- static const CommandId kCmdId = 327;
- typedef GLint Result;
- CommandHeader header;
- uint32 program;
- uint32 location_shm_id;
- uint32 location_shm_offset;
- uint32 data_size;
- };
- //! Bucket version of command that corresponds to glGetAttribLocation.
- struct GetAttribLocationBucket {
- static const CommandId kCmdId = 434;
- typedef GLint Result;
- CommandHeader header;
- uint32 program;
- uint32 name_bucket_id;
- uint32 location_shm_id;
- uint32 location_shm_offset;
- };
- //! Command that corresponds to glGetBooleanv.
- struct GetBooleanv {
- static const CommandId kCmdId = 328;
- typedef SizedResult<GLboolean> Result;
- CommandHeader header;
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetBufferParameteriv.
- struct GetBufferParameteriv {
- static const CommandId kCmdId = 329;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetError.
- struct GetError {
- static const CommandId kCmdId = 330;
- typedef GLenum Result;
- CommandHeader header;
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetFloatv.
- struct GetFloatv {
- static const CommandId kCmdId = 331;
- typedef SizedResult<GLfloat> Result;
- CommandHeader header;
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetFramebufferAttachmentParameteriv.
- struct GetFramebufferAttachmentParameteriv {
- static const CommandId kCmdId = 332;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 attachment; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetIntegerv.
- struct GetIntegerv {
- static const CommandId kCmdId = 333;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetProgramiv.
- struct GetProgramiv {
- static const CommandId kCmdId = 334;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetProgramInfoLog.
- struct GetProgramInfoLog {
- static const CommandId kCmdId = 335;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 bucket_id; //!< uint32
- };
- //! Command that corresponds to glGetRenderbufferParameteriv.
- struct GetRenderbufferParameteriv {
- static const CommandId kCmdId = 336;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetShaderiv.
- struct GetShaderiv {
- static const CommandId kCmdId = 337;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetShaderInfoLog.
- struct GetShaderInfoLog {
- static const CommandId kCmdId = 338;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 bucket_id; //!< uint32
- };
- //! Command that corresponds to glGetShaderPrecisionFormat.
- struct GetShaderPrecisionFormat {
- static const CommandId kCmdId = 339;
- struct Result {
- int32 success;
- int32 min_range;
- int32 max_range;
- int32 precision;
- };
- CommandHeader header;
- uint32 shadertype; //!< GLenum
- uint32 precisiontype; //!< GLenum
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetShaderSource.
- struct GetShaderSource {
- static const CommandId kCmdId = 340;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 bucket_id; //!< uint32
- };
- //! Command that corresponds to glGetString.
- struct GetString {
- static const CommandId kCmdId = 341;
- CommandHeader header;
- uint32 name; //!< GLenum
- uint32 bucket_id; //!< uint32
- };
- //! Command that corresponds to glGetTexParameterfv.
- struct GetTexParameterfv {
- static const CommandId kCmdId = 342;
- typedef SizedResult<GLfloat> Result;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetTexParameteriv.
- struct GetTexParameteriv {
- static const CommandId kCmdId = 343;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetUniformLocation.
- struct GetUniformLocation {
- static const CommandId kCmdId = 346;
- typedef GLint Result;
- CommandHeader header;
- uint32 program;
- uint32 name_shm_id;
- uint32 name_shm_offset;
- uint32 location_shm_id;
- uint32 location_shm_offset;
- uint32 data_size;
- };
- //! Immediate version of command that corresponds to glGetUniformLocation.
- struct GetUniformLocationImmediate {
- static const CommandId kCmdId = 347;
- typedef GLint Result;
- CommandHeader header;
- uint32 program;
- uint32 location_shm_id;
- uint32 location_shm_offset;
- uint32 data_size;
- };
- //! Bucket version of command that corresponds to glGetUniformLocation.
- struct GetUniformLocationBucket {
- static const CommandId kCmdId = 433;
- typedef GLint Result;
- CommandHeader header;
- uint32 program;
- uint32 name_bucket_id;
- uint32 location_shm_id;
- uint32 location_shm_offset;
- };
- //! Command that corresponds to glGetUniformfv.
- struct GetUniformfv {
- static const CommandId kCmdId = 344;
- typedef SizedResult<GLfloat> Result;
- CommandHeader header;
- uint32 program; //!< GLuint
- int32 location; //!< GLint
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetUniformiv.
- struct GetUniformiv {
- static const CommandId kCmdId = 345;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 program; //!< GLuint
- int32 location; //!< GLint
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetVertexAttribfv.
- struct GetVertexAttribfv {
- static const CommandId kCmdId = 348;
- typedef SizedResult<GLfloat> Result;
- CommandHeader header;
- uint32 index; //!< GLuint
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetVertexAttribiv.
- struct GetVertexAttribiv {
- static const CommandId kCmdId = 349;
- typedef SizedResult<GLint> Result;
- CommandHeader header;
- uint32 index; //!< GLuint
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Command that corresponds to glGetVertexAttribPointerv.
- struct GetVertexAttribPointerv {
- static const CommandId kCmdId = 350;
- typedef SizedResult<GLuint> Result;
- CommandHeader header;
- uint32 index; //!< GLuint
- uint32 pname; //!< GLenum
- uint32 pointer_shm_id; //!< uint32
- uint32 pointer_shm_offset; //!< uint32
- };
- //! Command that corresponds to glHint.
- struct Hint {
- static const CommandId kCmdId = 351;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 mode; //!< GLenum
- };
- //! Command that corresponds to glIsBuffer.
- struct IsBuffer {
- static const CommandId kCmdId = 352;
- typedef uint32 Result;
- CommandHeader header;
- uint32 buffer; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glIsEnabled.
- struct IsEnabled {
- static const CommandId kCmdId = 353;
- typedef uint32 Result;
- CommandHeader header;
- uint32 cap; //!< GLenum
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glIsFramebuffer.
- struct IsFramebuffer {
- static const CommandId kCmdId = 354;
- typedef uint32 Result;
- CommandHeader header;
- uint32 framebuffer; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glIsProgram.
- struct IsProgram {
- static const CommandId kCmdId = 355;
- typedef uint32 Result;
- CommandHeader header;
- uint32 program; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glIsRenderbuffer.
- struct IsRenderbuffer {
- static const CommandId kCmdId = 356;
- typedef uint32 Result;
- CommandHeader header;
- uint32 renderbuffer; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glIsShader.
- struct IsShader {
- static const CommandId kCmdId = 357;
- typedef uint32 Result;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glIsTexture.
- struct IsTexture {
- static const CommandId kCmdId = 358;
- typedef uint32 Result;
- CommandHeader header;
- uint32 texture; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glLineWidth.
- struct LineWidth {
- static const CommandId kCmdId = 359;
- CommandHeader header;
- float width; //!< GLfloat
- };
- //! Command that corresponds to glLinkProgram.
- struct LinkProgram {
- static const CommandId kCmdId = 360;
- CommandHeader header;
- uint32 program; //!< GLuint
- };
- //! Command that corresponds to glPixelStorei.
- struct PixelStorei {
- static const CommandId kCmdId = 361;
- CommandHeader header;
- uint32 pname; //!< GLenum
- int32 param; //!< GLint
- };
- //! Command that corresponds to glPolygonOffset.
- struct PolygonOffset {
- static const CommandId kCmdId = 362;
- CommandHeader header;
- float factor; //!< GLfloat
- float units; //!< GLfloat
- };
- //! Command that corresponds to glReadPixels.
- //! ReadPixels has the result separated from the pixel buffer so that
- //! it is easier to specify the result going to some specific place
- //! that exactly fits the rectangle of pixels.
- struct ReadPixels {
- static const CommandId kCmdId = 363;
- typedef uint32 Result;
- CommandHeader header;
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- uint32 format; //!< GLenum
- uint32 type; //!< GLenum
- uint32 pixels_shm_id; //!< uint32
- uint32 pixels_shm_offset; //!< uint32
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that corresponds to glReleaseShaderCompiler.
- struct ReleaseShaderCompiler {
- static const CommandId kCmdId = 437;
- CommandHeader header;
- };
- //! Command that corresponds to glRenderbufferStorage.
- struct RenderbufferStorage {
- static const CommandId kCmdId = 364;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 internalformat; //!< GLenum
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- };
- //! Command that corresponds to glSampleCoverage.
- struct SampleCoverage {
- static const CommandId kCmdId = 365;
- CommandHeader header;
- float value; //!< GLclampf
- uint32 invert; //!< GLboolean
- };
- //! Command that corresponds to glScissor.
- struct Scissor {
- static const CommandId kCmdId = 366;
- CommandHeader header;
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- };
- //! Command that corresponds to glShaderBinary.
- struct ShaderBinary {
- static const CommandId kCmdId = 436;
- CommandHeader header;
- int32 n; //!< GLsizei
- uint32 shaders_shm_id; //!< uint32
- uint32 shaders_shm_offset; //!< uint32
- uint32 binaryformat; //!< GLenum
- uint32 binary_shm_id; //!< uint32
- uint32 binary_shm_offset; //!< uint32
- int32 length; //!< GLsizei
- };
- //! Command that corresponds to glShaderSource.
- struct ShaderSource {
- static const CommandId kCmdId = 367;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 data_shm_id; //!< uint32
- uint32 data_shm_offset; //!< uint32
- uint32 data_size; //!< uint32
- };
- //! Immediate version of command that corresponds to glShaderSource.
- struct ShaderSourceImmediate {
- static const CommandId kCmdId = 368;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 data_size; //!< uint32
- };
- //! Bucket version of command that corresponds to glShaderSource.
- struct ShaderSourceBucket {
- static const CommandId kCmdId = 435;
- CommandHeader header;
- uint32 shader; //!< GLuint
- uint32 data_bucket_id; //!< uint32
- };
- //! Command that corresponds to glStencilFunc.
- struct StencilFunc {
- static const CommandId kCmdId = 369;
- CommandHeader header;
- uint32 func; //!< GLenum
- int32 ref; //!< GLint
- uint32 mask; //!< GLuint
- };
- //! Command that corresponds to glStencilFuncSeparate.
- struct StencilFuncSeparate {
- static const CommandId kCmdId = 370;
- CommandHeader header;
- uint32 face; //!< GLenum
- uint32 func; //!< GLenum
- int32 ref; //!< GLint
- uint32 mask; //!< GLuint
- };
- //! Command that corresponds to glStencilMask.
- struct StencilMask {
- static const CommandId kCmdId = 371;
- CommandHeader header;
- uint32 mask; //!< GLuint
- };
- //! Command that corresponds to glStencilMaskSeparate.
- struct StencilMaskSeparate {
- static const CommandId kCmdId = 372;
- CommandHeader header;
- uint32 face; //!< GLenum
- uint32 mask; //!< GLuint
- };
- //! Command that corresponds to glStencilOp.
- struct StencilOp {
- static const CommandId kCmdId = 373;
- CommandHeader header;
- uint32 fail; //!< GLenum
- uint32 zfail; //!< GLenum
- uint32 zpass; //!< GLenum
- };
- //! Command that corresponds to glStencilOpSeparate.
- struct StencilOpSeparate {
- static const CommandId kCmdId = 374;
- CommandHeader header;
- uint32 face; //!< GLenum
- uint32 fail; //!< GLenum
- uint32 zfail; //!< GLenum
- uint32 zpass; //!< GLenum
- };
- //! Command that corresponds to glTexImage2D.
- struct TexImage2D {
- static const CommandId kCmdId = 375;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 internalformat; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- int32 border; //!< GLint
- uint32 format; //!< GLenum
- uint32 type; //!< GLenum
- uint32 pixels_shm_id; //!< uint32
- uint32 pixels_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glTexImage2D.
- struct TexImage2DImmediate {
- static const CommandId kCmdId = 376;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 internalformat; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- int32 border; //!< GLint
- uint32 format; //!< GLenum
- uint32 type; //!< GLenum
- };
- //! Command that corresponds to glTexParameterf.
- struct TexParameterf {
- static const CommandId kCmdId = 377;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- float param; //!< GLfloat
- };
- //! Command that corresponds to glTexParameterfv.
- struct TexParameterfv {
- static const CommandId kCmdId = 378;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glTexParameterfv.
- struct TexParameterfvImmediate {
- static const CommandId kCmdId = 379;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- };
- //! Command that corresponds to glTexParameteri.
- struct TexParameteri {
- static const CommandId kCmdId = 380;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- int32 param; //!< GLint
- };
- //! Command that corresponds to glTexParameteriv.
- struct TexParameteriv {
- static const CommandId kCmdId = 381;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- uint32 params_shm_id; //!< uint32
- uint32 params_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glTexParameteriv.
- struct TexParameterivImmediate {
- static const CommandId kCmdId = 382;
- CommandHeader header;
- uint32 target; //!< GLenum
- uint32 pname; //!< GLenum
- };
- //! Command that corresponds to glTexSubImage2D.
- struct TexSubImage2D {
- static const CommandId kCmdId = 383;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 xoffset; //!< GLint
- int32 yoffset; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- uint32 format; //!< GLenum
- uint32 type; //!< GLenum
- uint32 pixels_shm_id; //!< uint32
- uint32 pixels_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glTexSubImage2D.
- struct TexSubImage2DImmediate {
- static const CommandId kCmdId = 384;
- CommandHeader header;
- uint32 target; //!< GLenum
- int32 level; //!< GLint
- int32 xoffset; //!< GLint
- int32 yoffset; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- uint32 format; //!< GLenum
- uint32 type; //!< GLenum
- };
- //! Command that corresponds to glUniform1f.
- struct Uniform1f {
- static const CommandId kCmdId = 385;
- CommandHeader header;
- int32 location; //!< GLint
- float x; //!< GLfloat
- };
- //! Command that corresponds to glUniform1fv.
- struct Uniform1fv {
- static const CommandId kCmdId = 386;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform1fv.
- struct Uniform1fvImmediate {
- static const CommandId kCmdId = 387;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform1i.
- struct Uniform1i {
- static const CommandId kCmdId = 388;
- CommandHeader header;
- int32 location; //!< GLint
- int32 x; //!< GLint
- };
- //! Command that corresponds to glUniform1iv.
- struct Uniform1iv {
- static const CommandId kCmdId = 389;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform1iv.
- struct Uniform1ivImmediate {
- static const CommandId kCmdId = 390;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform2f.
- struct Uniform2f {
- static const CommandId kCmdId = 391;
- CommandHeader header;
- int32 location; //!< GLint
- float x; //!< GLfloat
- float y; //!< GLfloat
- };
- //! Command that corresponds to glUniform2fv.
- struct Uniform2fv {
- static const CommandId kCmdId = 392;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform2fv.
- struct Uniform2fvImmediate {
- static const CommandId kCmdId = 393;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform2i.
- struct Uniform2i {
- static const CommandId kCmdId = 394;
- CommandHeader header;
- int32 location; //!< GLint
- int32 x; //!< GLint
- int32 y; //!< GLint
- };
- //! Command that corresponds to glUniform2iv.
- struct Uniform2iv {
- static const CommandId kCmdId = 395;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform2iv.
- struct Uniform2ivImmediate {
- static const CommandId kCmdId = 396;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform3f.
- struct Uniform3f {
- static const CommandId kCmdId = 397;
- CommandHeader header;
- int32 location; //!< GLint
- float x; //!< GLfloat
- float y; //!< GLfloat
- float z; //!< GLfloat
- };
- //! Command that corresponds to glUniform3fv.
- struct Uniform3fv {
- static const CommandId kCmdId = 398;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform3fv.
- struct Uniform3fvImmediate {
- static const CommandId kCmdId = 399;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform3i.
- struct Uniform3i {
- static const CommandId kCmdId = 400;
- CommandHeader header;
- int32 location; //!< GLint
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 z; //!< GLint
- };
- //! Command that corresponds to glUniform3iv.
- struct Uniform3iv {
- static const CommandId kCmdId = 401;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform3iv.
- struct Uniform3ivImmediate {
- static const CommandId kCmdId = 402;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform4f.
- struct Uniform4f {
- static const CommandId kCmdId = 403;
- CommandHeader header;
- int32 location; //!< GLint
- float x; //!< GLfloat
- float y; //!< GLfloat
- float z; //!< GLfloat
- float w; //!< GLfloat
- };
- //! Command that corresponds to glUniform4fv.
- struct Uniform4fv {
- static const CommandId kCmdId = 404;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform4fv.
- struct Uniform4fvImmediate {
- static const CommandId kCmdId = 405;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniform4i.
- struct Uniform4i {
- static const CommandId kCmdId = 406;
- CommandHeader header;
- int32 location; //!< GLint
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 z; //!< GLint
- int32 w; //!< GLint
- };
- //! Command that corresponds to glUniform4iv.
- struct Uniform4iv {
- static const CommandId kCmdId = 407;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 v_shm_id; //!< uint32
- uint32 v_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniform4iv.
- struct Uniform4ivImmediate {
- static const CommandId kCmdId = 408;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- };
- //! Command that corresponds to glUniformMatrix2fv.
- struct UniformMatrix2fv {
- static const CommandId kCmdId = 409;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 transpose; //!< GLboolean
- uint32 value_shm_id; //!< uint32
- uint32 value_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniformMatrix2fv.
- struct UniformMatrix2fvImmediate {
- static const CommandId kCmdId = 410;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 transpose; //!< GLboolean
- };
- //! Command that corresponds to glUniformMatrix3fv.
- struct UniformMatrix3fv {
- static const CommandId kCmdId = 411;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 transpose; //!< GLboolean
- uint32 value_shm_id; //!< uint32
- uint32 value_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniformMatrix3fv.
- struct UniformMatrix3fvImmediate {
- static const CommandId kCmdId = 412;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 transpose; //!< GLboolean
- };
- //! Command that corresponds to glUniformMatrix4fv.
- struct UniformMatrix4fv {
- static const CommandId kCmdId = 413;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 transpose; //!< GLboolean
- uint32 value_shm_id; //!< uint32
- uint32 value_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glUniformMatrix4fv.
- struct UniformMatrix4fvImmediate {
- static const CommandId kCmdId = 414;
- CommandHeader header;
- int32 location; //!< GLint
- int32 count; //!< GLsizei
- uint32 transpose; //!< GLboolean
- };
- //! Command that corresponds to glUseProgram.
- struct UseProgram {
- static const CommandId kCmdId = 415;
- CommandHeader header;
- uint32 program; //!< GLuint
- };
- //! Command that corresponds to glValidateProgram.
- struct ValidateProgram {
- static const CommandId kCmdId = 416;
- CommandHeader header;
- uint32 program; //!< GLuint
- };
- //! Command that corresponds to glVertexAttrib1f.
- struct VertexAttrib1f {
- static const CommandId kCmdId = 417;
- CommandHeader header;
- uint32 indx; //!< GLuint
- float x; //!< GLfloat
- };
- //! Command that corresponds to glVertexAttrib1fv.
- struct VertexAttrib1fv {
- static const CommandId kCmdId = 418;
- CommandHeader header;
- uint32 indx; //!< GLuint
- uint32 values_shm_id; //!< uint32
- uint32 values_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glVertexAttrib1fv.
- struct VertexAttrib1fvImmediate {
- static const CommandId kCmdId = 419;
- CommandHeader header;
- uint32 indx; //!< GLuint
- };
- //! Command that corresponds to glVertexAttrib2f.
- struct VertexAttrib2f {
- static const CommandId kCmdId = 420;
- CommandHeader header;
- uint32 indx; //!< GLuint
- float x; //!< GLfloat
- float y; //!< GLfloat
- };
- //! Command that corresponds to glVertexAttrib2fv.
- struct VertexAttrib2fv {
- static const CommandId kCmdId = 421;
- CommandHeader header;
- uint32 indx; //!< GLuint
- uint32 values_shm_id; //!< uint32
- uint32 values_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glVertexAttrib2fv.
- struct VertexAttrib2fvImmediate {
- static const CommandId kCmdId = 422;
- CommandHeader header;
- uint32 indx; //!< GLuint
- };
- //! Command that corresponds to glVertexAttrib3f.
- struct VertexAttrib3f {
- static const CommandId kCmdId = 423;
- CommandHeader header;
- uint32 indx; //!< GLuint
- float x; //!< GLfloat
- float y; //!< GLfloat
- float z; //!< GLfloat
- };
- //! Command that corresponds to glVertexAttrib3fv.
- struct VertexAttrib3fv {
- static const CommandId kCmdId = 424;
- CommandHeader header;
- uint32 indx; //!< GLuint
- uint32 values_shm_id; //!< uint32
- uint32 values_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glVertexAttrib3fv.
- struct VertexAttrib3fvImmediate {
- static const CommandId kCmdId = 425;
- CommandHeader header;
- uint32 indx; //!< GLuint
- };
- //! Command that corresponds to glVertexAttrib4f.
- struct VertexAttrib4f {
- static const CommandId kCmdId = 426;
- CommandHeader header;
- uint32 indx; //!< GLuint
- float x; //!< GLfloat
- float y; //!< GLfloat
- float z; //!< GLfloat
- float w; //!< GLfloat
- };
- //! Command that corresponds to glVertexAttrib4fv.
- struct VertexAttrib4fv {
- static const CommandId kCmdId = 427;
- CommandHeader header;
- uint32 indx; //!< GLuint
- uint32 values_shm_id; //!< uint32
- uint32 values_shm_offset; //!< uint32
- };
- //! Immediate version of command that corresponds to glVertexAttrib4fv.
- struct VertexAttrib4fvImmediate {
- static const CommandId kCmdId = 428;
- CommandHeader header;
- uint32 indx; //!< GLuint
- };
- //! Command that corresponds to glVertexAttribPointer.
- struct VertexAttribPointer {
- static const CommandId kCmdId = 429;
- CommandHeader header;
- uint32 indx; //!< GLuint
- int32 size; //!< GLint
- uint32 type; //!< GLenum
- uint32 normalized; //!< GLboolean
- int32 stride; //!< GLsizei
- uint32 offset; //!< GLuint
- };
- //! Command that corresponds to glViewport.
- struct Viewport {
- static const CommandId kCmdId = 430;
- CommandHeader header;
- int32 x; //!< GLint
- int32 y; //!< GLint
- int32 width; //!< GLsizei
- int32 height; //!< GLsizei
- };
- //! Command that corresponds to SwapBuffers.
- struct SwapBuffers {
- static const CommandId kCmdId = 431;
- CommandHeader header;
- };
- //! Command that corresponds to GetMaxValueInBuffer.
- struct GetMaxValueInBuffer {
- static const CommandId kCmdId = 436;
- typedef GLuint Result;
- CommandHeader header;
- uint32 buffer_id; //!< GLuint
- int32 count; //!< GLsizei
- uint32 type; //!< GLenum
- uint32 offset; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
- //! Command that generates shared ids for contexts that share resources.
- struct GenSharedIds {
- static const CommandId kCmdId = 439;
- CommandHeader header;
- uint32 namespace_id; //!< GLuint
- uint32 id_offset; //!< GLuint
- int32 n; //!< GLsizei
- uint32 ids_shm_id; //!< uint32
- uint32 ids_shm_offset; //!< uint32
- };
- //! Command that deletes shared ids.
- struct DeleteSharedIds {
- static const CommandId kCmdId = 440;
- CommandHeader header;
- uint32 namespace_id; //!< GLuint
- int32 n; //!< GLsizei
- uint32 ids_shm_id; //!< uint32
- uint32 ids_shm_offset; //!< uint32
- };
- //! Command that registers shared ids. It is an error to attempt
- //! to register an id that is already registered.
- struct RegisterSharedIds {
- static const CommandId kCmdId = 441;
- CommandHeader header;
- uint32 namespace_id; //!< GLuint
- int32 n; //!< GLsizei
- uint32 ids_shm_id; //!< uint32
- uint32 ids_shm_offset; //!< uint32
- };
- //! Command that enables features. The bucket should contain the feature string.
- struct CommandBufferEnable {
- static const CommandId kCmdId = 442;
- typedef GLint Result;
- CommandHeader header;
- uint32 bucket_id; //!< GLuint
- uint32 result_shm_id; //!< uint32
- uint32 result_shm_offset; //!< uint32
- };
|