Cleanup: GPU: Remove unused code and header
This commit is contained in:
parent
cc7d5e1fe6
commit
15655aa1dd
|
@ -24,8 +24,6 @@
|
|||
#ifndef __GPU_DEBUG_H__
|
||||
#define __GPU_DEBUG_H__
|
||||
|
||||
#include "GPU_glew.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include "BKE_material.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_uniformbuffer.h"
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "DNA_customdata_types.h"
|
||||
#include "DNA_listBase.h"
|
||||
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_shader.h"
|
||||
|
||||
|
|
|
@ -26,35 +26,6 @@
|
|||
#include "GPU_primitive.h"
|
||||
#include "gpu_primitive_private.h"
|
||||
|
||||
GPUPrimClass GPU_primtype_class(GPUPrimType prim_type)
|
||||
{
|
||||
static const GPUPrimClass classes[] = {
|
||||
[GPU_PRIM_POINTS] = GPU_PRIM_CLASS_POINT,
|
||||
[GPU_PRIM_LINES] = GPU_PRIM_CLASS_LINE,
|
||||
[GPU_PRIM_LINE_STRIP] = GPU_PRIM_CLASS_LINE,
|
||||
[GPU_PRIM_LINE_LOOP] = GPU_PRIM_CLASS_LINE,
|
||||
[GPU_PRIM_TRIS] = GPU_PRIM_CLASS_SURFACE,
|
||||
[GPU_PRIM_TRI_STRIP] = GPU_PRIM_CLASS_SURFACE,
|
||||
[GPU_PRIM_TRI_FAN] = GPU_PRIM_CLASS_SURFACE,
|
||||
|
||||
[GPU_PRIM_LINES_ADJ] = GPU_PRIM_CLASS_LINE,
|
||||
[GPU_PRIM_LINE_STRIP_ADJ] = GPU_PRIM_CLASS_LINE,
|
||||
[GPU_PRIM_TRIS_ADJ] = GPU_PRIM_CLASS_SURFACE,
|
||||
|
||||
[GPU_PRIM_NONE] = GPU_PRIM_CLASS_NONE,
|
||||
};
|
||||
|
||||
return classes[prim_type];
|
||||
}
|
||||
|
||||
bool GPU_primtype_belongs_to_class(GPUPrimType prim_type, GPUPrimClass prim_class)
|
||||
{
|
||||
if (prim_class == GPU_PRIM_CLASS_NONE && prim_type == GPU_PRIM_NONE) {
|
||||
return true;
|
||||
}
|
||||
return prim_class & GPU_primtype_class(prim_type);
|
||||
}
|
||||
|
||||
GLenum convert_prim_type_to_gl(GPUPrimType prim_type)
|
||||
{
|
||||
#if TRUST_NO_ONE
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_select.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#ifndef __GPU_SHADER_PRIVATE_H__
|
||||
#define __GPU_SHADER_PRIVATE_H__
|
||||
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_shader_interface.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#include "DNA_vec_types.h"
|
||||
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_immediate.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_texture.h"
|
||||
|
|
Loading…
Reference in New Issue