Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_inline.h
| Show All 14 Lines | |||||
| * | * | ||||
| * Copyright 2016, Blender Foundation. | * Copyright 2016, Blender Foundation. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup draw | * \ingroup draw | ||||
| */ | */ | ||||
| #ifndef __DRAW_CACHE_INLINE_H__ | #pragma once | ||||
| #define __DRAW_CACHE_INLINE_H__ | |||||
| #include "GPU_batch.h" | #include "GPU_batch.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| /* Common */ | /* Common */ | ||||
| // #define DRW_DEBUG_MESH_CACHE_REQUEST | // #define DRW_DEBUG_MESH_CACHE_REQUEST | ||||
| #ifdef DRW_DEBUG_MESH_CACHE_REQUEST | #ifdef DRW_DEBUG_MESH_CACHE_REQUEST | ||||
| ▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | if (batch != NULL) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| BLI_INLINE bool DRW_vbo_requested(GPUVertBuf *vbo) | BLI_INLINE bool DRW_vbo_requested(GPUVertBuf *vbo) | ||||
| { | { | ||||
| return (vbo != NULL && vbo->format.attr_len == 0); | return (vbo != NULL && vbo->format.attr_len == 0); | ||||
| } | } | ||||
| #endif /* __DRAW_CACHE_INLINE_H__ */ | |||||