Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_batch.c
| Show First 20 Lines • Show All 369 Lines • ▼ Show 20 Lines | #endif | ||||
| return new_vao; | return new_vao; | ||||
| } | } | ||||
| void GPU_batch_program_set_no_use(GPUBatch *batch, | void GPU_batch_program_set_no_use(GPUBatch *batch, | ||||
| uint32_t program, | uint32_t program, | ||||
| const GPUShaderInterface *shaderface) | const GPUShaderInterface *shaderface) | ||||
| { | { | ||||
| #if TRUST_NO_ONE | #if TRUST_NO_ONE | ||||
| assert(glIsProgram(shaderface->program)); | assert(glIsProgram(program)); | ||||
| assert(batch->program_in_use == 0); | assert(batch->program_in_use == 0); | ||||
| #endif | #endif | ||||
| batch->interface = shaderface; | batch->interface = shaderface; | ||||
| batch->program = program; | batch->program = program; | ||||
| batch->vao_id = batch_vao_get(batch); | batch->vao_id = batch_vao_get(batch); | ||||
| } | } | ||||
| void GPU_batch_program_set(GPUBatch *batch, uint32_t program, const GPUShaderInterface *shaderface) | void GPU_batch_program_set(GPUBatch *batch, uint32_t program, const GPUShaderInterface *shaderface) | ||||
| ▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines | |||||