Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-18 16:09:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-18 16:10:31 +0300
commit428743a9b06cc09b4eb4dd3e7794d45d13457fb8 (patch)
treec80387088d4a89de88627f43665c73d805049a65 /source/blender/gpu/GPU_shader_interface.h
parentf882df9e0f9de99c37558ce375ce681c148eac82 (diff)
Cleanup: style for GPU module
Diffstat (limited to 'source/blender/gpu/GPU_shader_interface.h')
-rw-r--r--source/blender/gpu/GPU_shader_interface.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/gpu/GPU_shader_interface.h b/source/blender/gpu/GPU_shader_interface.h
index c80cc1021ec..458a49a366b 100644
--- a/source/blender/gpu/GPU_shader_interface.h
+++ b/source/blender/gpu/GPU_shader_interface.h
@@ -65,7 +65,7 @@ typedef enum {
} GPUUniformBuiltin;
typedef struct GPUShaderInput {
- struct GPUShaderInput* next;
+ struct GPUShaderInput *next;
uint32_t name_offset;
uint name_hash;
GPUUniformBuiltin builtin_type; /* only for uniform inputs */
@@ -80,25 +80,25 @@ typedef struct GPUShaderInput {
typedef struct GPUShaderInterface {
int32_t program;
uint32_t name_buffer_offset;
- GPUShaderInput* attrib_buckets[GPU_NUM_SHADERINTERFACE_BUCKETS];
- GPUShaderInput* uniform_buckets[GPU_NUM_SHADERINTERFACE_BUCKETS];
- GPUShaderInput* ubo_buckets[GPU_NUM_SHADERINTERFACE_BUCKETS];
- GPUShaderInput* builtin_uniforms[GPU_NUM_UNIFORMS];
- char* name_buffer;
- struct GPUBatch** batches; /* references to batches using this interface */
+ GPUShaderInput *attrib_buckets[GPU_NUM_SHADERINTERFACE_BUCKETS];
+ GPUShaderInput *uniform_buckets[GPU_NUM_SHADERINTERFACE_BUCKETS];
+ GPUShaderInput *ubo_buckets[GPU_NUM_SHADERINTERFACE_BUCKETS];
+ GPUShaderInput *builtin_uniforms[GPU_NUM_UNIFORMS];
+ char *name_buffer;
+ struct GPUBatch **batches; /* references to batches using this interface */
uint batches_len;
} GPUShaderInterface;
-GPUShaderInterface* GPU_shaderinterface_create(int32_t program_id);
-void GPU_shaderinterface_discard(GPUShaderInterface*);
+GPUShaderInterface *GPU_shaderinterface_create(int32_t program_id);
+void GPU_shaderinterface_discard(GPUShaderInterface *);
-const GPUShaderInput* GPU_shaderinterface_uniform(const GPUShaderInterface*, const char* name);
-const GPUShaderInput* GPU_shaderinterface_uniform_builtin(const GPUShaderInterface*, GPUUniformBuiltin);
-const GPUShaderInput* GPU_shaderinterface_ubo(const GPUShaderInterface*, const char* name);
-const GPUShaderInput* GPU_shaderinterface_attr(const GPUShaderInterface*, const char* name);
+const GPUShaderInput *GPU_shaderinterface_uniform(const GPUShaderInterface *, const char *name);
+const GPUShaderInput *GPU_shaderinterface_uniform_builtin(const GPUShaderInterface *, GPUUniformBuiltin);
+const GPUShaderInput *GPU_shaderinterface_ubo(const GPUShaderInterface *, const char *name);
+const GPUShaderInput *GPU_shaderinterface_attr(const GPUShaderInterface *, const char *name);
/* keep track of batches using this interface */
-void GPU_shaderinterface_add_batch_ref(GPUShaderInterface*, struct GPUBatch*);
-void GPU_shaderinterface_remove_batch_ref(GPUShaderInterface*, struct GPUBatch*);
+void GPU_shaderinterface_add_batch_ref(GPUShaderInterface *, struct GPUBatch *);
+void GPU_shaderinterface_remove_batch_ref(GPUShaderInterface *, struct GPUBatch *);
#endif /* __GPU_SHADER_INTERFACE_H__ */