Skip to content

Commit

Permalink
added more infos for GL_BUFFER_USAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
byteblob authored Nov 8, 2017
1 parent 95ef411 commit 7146d01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion es3/glMapBufferRange.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@
Mappings to the data stores of buffer objects may have nonstandard performance characteristics.
For example, such mappings may be marked as uncacheable regions of memory, and in such cases reading from them may be very slow.
To ensure optimal performance, the client should use the mapping in a fashion consistent
with the values of <code class="constant">GL_BUFFER_USAGE</code> and <em class="parameter"><code>access</code></em>.
with the values of <code class="constant">GL_BUFFER_USAGE</code> (see <code class="function">glGetBufferParameter</code>
and <em class="parameter"><code>usage</code></em> of <code class="function">glBufferData</code>)
and <em class="parameter"><code>access</code></em>.
Using a mapping in a fashion inconsistent with these values is liable to be multiple orders of magnitude slower
than using normal memory.
</p>
Expand Down

0 comments on commit 7146d01

Please sign in to comment.