seg fault on second call to bgfx_frame #2446
Unanswered
chriscamacho
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
if it helps this is how I'm creating the buffers bgfx_vertex_layout_t pcvDecl;
bgfx_vertex_layout_begin(&pcvDecl, BGFX_RENDERER_TYPE_VULKAN);
bgfx_vertex_layout_add(&pcvDecl, BGFX_ATTRIB_POSITION, 3, BGFX_ATTRIB_TYPE_FLOAT, false, false);
bgfx_vertex_layout_add(&pcvDecl, BGFX_ATTRIB_COLOR0, 4, BGFX_ATTRIB_TYPE_UINT8, true, true);
bgfx_vertex_layout_end(&pcvDecl);
// .add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
// .add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true)
//.end();
bgfx_vertex_buffer_handle_t vbh = bgfx_create_vertex_buffer((const bgfx_memory_t*)cubeVertices[0], &pcvDecl, BGFX_BUFFER_NONE);
bgfx_index_buffer_handle_t ibh = bgfx_create_index_buffer((const bgfx_memory_t*)cubeTriList[0], BGFX_BUFFER_NONE); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
okay I'm holding this wrong again!
I'm exploring the C99 API, here's my main loop, when bgfx_frame is called a second time it causes a seg fault...
not sure I'm setting the buffers properly or what BGFX_DISCARD actually does...
Beta Was this translation helpful? Give feedback.
All reactions