Lines Matching full:binary
71 This extension introduces new commands to retrieve and set the binary
75 offline compiler. The resulting program binary can be reloaded into the
99 enum *binaryFormat, void *binary);
102 const void *binary, sizei length);
130 attached to the program. Alternatively, pre-compiled program binary code
144 FALSE, and indicates whether a program binary is likely to be retrieved
154 enum *binaryFormat, void *binary);
156 returns a binary representation of the program object's compiled and
157 linked executable source, henceforth referred to as its program binary.
158 The maximum number of bytes that may be written into <binary> is specified
160 binary, then an INVALID_OPERATION error is thrown. Otherwise, the actual
161 number of bytes written into <binary> is returned in <length> and its
165 The number of bytes in the program binary can be queried by calling
167 LINK_STATUS is FALSE, its program binary length is zero, and a call
173 const void *binary, sizei length);
175 loads a program object with a program binary previously returned from
178 shaders as a portable initial format. <binaryFormat> and <binary> must be
180 be the length of the program binary as returned by GetProgramBinary or
182 binary will fail, setting the LINK_STATUS of <program> to FALSE, if
185 Loading a program binary may also fail if the implementation determines
187 when the program binary was produced such as having been compiled with
190 Language source shaders, and perhaps again retrieve the program binary
193 A program object's program binary is replaced by calls to LinkProgram or
210 If ProgramBinary fails to load a binary, no error is generated, but any
218 return the number of program binary formats and the list of program binary
222 Any program binary retrieved using GetProgramBinary and submitted using
231 To indicate that a program binary is likely to be retrieved,
238 implementations to save additional information in the program binary
239 that would minimize recompilation in future uses of the program binary."
245 * boolean holding the hint to the retrievability of the program binary,
257 whether the binary retrieval hint is enabled for <program> is returned.
277 binary as reflected by its LINK_STATUS state; if <bufSize> is not big
278 enough to contain the entire program binary; or if the value of
287 …PROGRAM_BINARY_LENGTH Z+ GetProgramiv 0 Length of program binary …
288 …PROGRAM_BINARY_RETRIEVABLE_HINT Z GetProgramiv FALSE Retriavable binary hint enab…
289 …- Z1 GetProgramBinary N/A Binary representation of pro…
295 …MATS 0* x Z GetIntegerv N/A Enumerated program binary formats 2.14.3
296 …_FORMATS Z GetIntegerv 0 Number of program binary formats 2.14.3
310 void* binary;
352 // Retrieve the binary from the program object
355 binary = (void*)malloc(binaryLength);
356 glGetProgramBinary(newProgram, binaryLength, NULL, binaryFormat, binary);
359 // Cache the program binary for future runs
362 fwrite(binary, binaryLength, 1, outfile);
364 free(binary);
378 void* binary;
383 // Read the program binary
388 binary = (void*)malloc(binaryLength);
390 fread(binary, binaryLength, 1, infile);
394 // Load the binary into the program object -- no need to link!
396 glProgramBinary(progObj, binaryFormat, binary, binaryLength);
397 free(binary);
415 RESOLVED: A little. A program binary retrieved with GetProgramBinary
425 that querying the program binary after the full range of state
434 The program binary retrieved by GetProgramBinary is the one installed
451 4. Where are the binary formats defined and described?
455 to define one or more binary formats, thereby populating the list of
457 GetProgramBinary is always one of the binary formats in this list. If
463 needs to retrieve a program binary with an anonymous <binaryFormat> and
464 resupply that same <binaryFormat> when loading the program binary.
468 RESOLVED: Even if a program binary is successfully retrieved with
469 GetProgramBinary and then in a future run the program binary is
471 the program binary load may still fail.
475 PROGRAM_BINARY_FORMATS list may no longer contain the binary format
476 associated with the cached program binary, and INVALID_ENUM will be thrown
477 if the cached program binary format is passed into ProgramBinary anyway.
479 Even if the cached program binary format is still valid, ProgramBinary
480 may still fail to load the cached binary. This is the driver's way of
486 attribute location used by the program binary?
490 and replaces any program binary loaded prior to LinkProgram. So there is no
491 mechanism to remap an attribute location after loading a program binary.
494 retrieving the program binary. By calling BindAttribLocation followed by
496 followed by a call to GetProgramBinary, the retrieved program binary will
504 programmer to retrieve binary programs late in the execution, after
514 RESOLVED: All uniforms specified in the binary are reset to their shader-
516 binary is loaded. The spec language has been updated to specify this
520 binary even if non-program state has changed enough such that a
525 with the program binary such that if a recompile is necessary it has all
537 10 01/11/2019 Add an error for ProgramBinary if there are no binary
544 07 06/14/2012 Clean up descriptions of "failed binary", add errors,