Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Lubosz Sarnecki 1bfdc98109 TorusBufferStorage: Regenerate buffer storage every second.
To test regeneration in FrameCapture, the torus buffer storage example
now reinitializes its coherent buffer storage every second.

Define attrib pointers every draw.

Bug: angleproject:4599
Bug: angleproject:5857
Bug: angleproject:6774
Change-Id: I32984535d9810478b6906217102ac9c3e83464b2
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3406756
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2022-03-01 11:24:08 +00:00
Lubosz Sarnecki da02c6d9a5 samples: Improve TorusLighting samples.
Adjust the code style of the ES1 and ES2 TorusLighting samples to match
the one of TorusBufferStorage.

Use the step function override to calculate rotation and move state
changes that are required only once out of the draw function.

Bug: angleproject:5751
Change-Id: Ie663c7ecfd306504b6f9e9390ec24b251194f970
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3178904
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2021-09-23 16:52:49 +00:00
Lubosz Sarnecki 3369f72057 samples: Add torus bufferstorage ES3 sample.
Adds a sample that uses GL_EXT_buffer_storage and the
GL_MAP_COHERENT_BIT_EXT to update colors.

Expose IsGLExtensionEnabled in SampleApplication.

Bug: angleproject:5857
Change-Id: I1ba2962cda939da527a17c49a3ef430a69486c52
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3168628
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2021-09-23 16:44:59 +00:00
Lubosz Sarnecki d1da88ee27 samples: Add TorusLighting sample.
Add a vertex buffer example for GLES1 and 2.

Bug: angleproject:5751
Change-Id: If039451ff85dfffd8915497e9aaaab6e4ff71181
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2859827
Commit-Queue: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
2021-05-10 04:10:48 +00:00