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

vertex and uniform declaration issues #2

Closed
9 tasks done
floooh opened this issue Jul 17, 2017 · 0 comments
Closed
9 tasks done

vertex and uniform declaration issues #2

floooh opened this issue Jul 17, 2017 · 0 comments
Labels

Comments

@floooh
Copy link
Owner

floooh commented Jul 17, 2017

  • vertex layout definition should only happen in pipeline setup, not in shader setup (or only if required by backend API)
  • there should be 2 ways to define the vertex component location, which one is used depends on rendering backend and shader language dialect:
    • by name: sg_pipeline_setup_named_attr()
    • by slot index: sg_pipeline_setup_indexed_attr()
  • there must be several ways to describe uniform blocks in the shader setup:
    • per uniform, by name (traditional GL)
    • opaque uniform blocks (only useful with Metal, D3D11 or GL with shader-code-generation)
    • in general, shader setup should have different options depending on whether some sort of shader code generation is available, or shader setup needs to happen "manually"
  • vertex layout definition should have an explicit offset
@floooh floooh changed the title named vs indexed vertex and uniform locations vertex and uniform declaration issues Jul 27, 2017
@floooh floooh closed this as completed Aug 17, 2017
ikrima pushed a commit to ikrima/sokol that referenced this issue Apr 20, 2020
GetFocusedWindow doesn't actually fully work bc Win10 allows you to send mouse events to non-focused windows
Using ::SetCapture()/::GetCapture()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant