Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Half-float support #354

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
renderer,gl33: support float16 data in vertex arrays
Akaricchi committed Jan 18, 2023
commit 4df62c053b810c8f46ef36ba12add7b70a946487
1 change: 1 addition & 0 deletions src/renderer/api.h
Original file line number Diff line number Diff line change
@@ -229,6 +229,7 @@ typedef enum Primitive {

typedef enum VertexAttribType {
VA_FLOAT,
VA_HALF,
VA_BYTE,
VA_UBYTE,
VA_SHORT,
1 change: 1 addition & 0 deletions src/renderer/gl33/vertex_array.c
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@

static GLenum va_type_to_gl_type[] = {
[VA_FLOAT] = GL_FLOAT,
[VA_HALF] = GL_HALF_FLOAT,
[VA_BYTE] = GL_BYTE,
[VA_UBYTE] = GL_UNSIGNED_BYTE,
[VA_SHORT] = GL_SHORT,