diff options
Diffstat (limited to 'intern/gawain/gawain/gwn_attr_binding_private.h')
-rw-r--r-- | intern/gawain/gawain/gwn_attr_binding_private.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/intern/gawain/gawain/gwn_attr_binding_private.h b/intern/gawain/gawain/gwn_attr_binding_private.h new file mode 100644 index 00000000000..300945d464b --- /dev/null +++ b/intern/gawain/gawain/gwn_attr_binding_private.h @@ -0,0 +1,20 @@ + +// Gawain vertex attribute binding +// +// This code is part of the Gawain library, with modifications +// specific to integration with Blender. +// +// Copyright 2017 Mike Erwin +// +// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of +// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. + +#pragma once + +#include "gwn_vertex_format.h" +#include "gwn_shader_interface.h" + +void AttribBinding_clear(Gwn_AttrBinding*); + +void get_attrib_locations(const Gwn_VertFormat*, Gwn_AttrBinding*, const Gwn_ShaderInterface*); +unsigned read_attrib_location(const Gwn_AttrBinding*, unsigned a_idx); |