Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_batch.cc
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | bool GPU_batch_vertbuf_has(GPUBatch *batch, GPUVertBuf *verts) | ||||
| for (uint v = 0; v < GPU_BATCH_VBO_MAX_LEN; v++) { | for (uint v = 0; v < GPU_BATCH_VBO_MAX_LEN; v++) { | ||||
| if (batch->verts[v] == verts) { | if (batch->verts[v] == verts) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| void GPU_batch_resource_id_buf_set(GPUBatch *batch, GPUStorageBuf *resource_id_buf) | |||||
| { | |||||
| BLI_assert(resource_id_buf); | |||||
| batch->flag |= GPU_BATCH_DIRTY; | |||||
| batch->resource_id_buf = resource_id_buf; | |||||
| } | |||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Uniform setters | /** \name Uniform setters | ||||
| * | * | ||||
| * TODO(fclem): port this to GPUShader. | * TODO(fclem): port this to GPUShader. | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines | |||||