{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibajjbbu7tgfrczcdp2zxso3bket6jdxjwio5fxt7vvdazijw7yka",
    "uri": "at://did:plc:dxjzgxe7cvirxkwfjr2tjspt/app.bsky.feed.post/3mh7vhh6jfpu2"
  },
  "path": "/t/an-attempt-at-vulkan/49433#post_19",
  "publishedAt": "2026-03-16T06:54:06.000Z",
  "site": "https://hub.jmonkeyengine.org",
  "tags": [
    "https://docs.vulkan.org/guide/latest/push_constants.html"
  ],
  "textContent": "Tbh i am not sure i get the issues. Yes, spir-v does not support preprocessors style functions. Nor does opengl. You are already forced to recompile the shader in case a define changes. Jme already has its own preprocessor in place that does the loop unroll, so why not extent that part.\n\nFor uniform style variables you have push constants in vulcan. If its a good idea to use it is a different topic, but you can.\n\nhttps://docs.vulkan.org/guide/latest/push_constants.html\n\nNote, i am referring to this attempt. Last time i checked codex’s approach i got the impression that it was ment to create a implementation that makes use of the enforced ways vulcan wants to render.",
  "title": "An attempt at Vulkan"
}