Python API: new GPUShader.format_calc() method

Reviewers: mano-wii, fclem, campbellbarton

Differential Revision: https://developer.blender.org/D3772
This commit is contained in:
2018-10-09 11:17:29 +02:00
parent 1b910082a0
commit 9560fe60e4
3 changed files with 133 additions and 0 deletions

View File

@@ -80,8 +80,11 @@ typedef struct GPUVertFormat {
GPUVertAttr attribs[GPU_VERT_ATTR_MAX_LEN]; /* TODO: variable-size attribs array */
} GPUVertFormat;
struct GPUShaderInterface;
void GPU_vertformat_clear(GPUVertFormat *);
void GPU_vertformat_copy(GPUVertFormat *dest, const GPUVertFormat *src);
void GPU_vertformat_from_interface(GPUVertFormat *format, const struct GPUShaderInterface *shaderface);
uint GPU_vertformat_attr_add(
GPUVertFormat *, const char *name,