medfall

A super great game engine
Log | Files | Refs

commit 353e1b5dc2a4f9c6a4d29285d376bc030ffd2349
parent b6efc6f10d63ccadf4ed51f1a9f60afe755598ae
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue May 16 03:53:35 +0300

No need for that comment anymore

Diffstat:
renderer.h | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/renderer.h b/renderer.h @@ -213,11 +213,6 @@ void renderer_draw_instances( const Mesh & mesh, const RenderState & state, u32 * cheesy renderer_ub_data helper */ -// TODO: By the rules of std140, each vec3 must start on a 16-byte boundary. -// But vec3 does not consume 16 bytes of storage; it only consumes 12. And -// since float can start on a 4-byte boundary, a vec3 followed by a float will -// take up 16 bytes. - template< typename T > constexpr size_t renderer_ubo_alignment() { return align4( sizeof( T ) );