{"id":16984188,"url":"https://github.com/floooh/fips-bgfx","last_synced_at":"2026-01-05T04:44:17.930Z","repository":{"id":142550046,"uuid":"29811543","full_name":"floooh/fips-bgfx","owner":"floooh","description":"fipsified version of bgfx (https://github.com/bkaradzic/bgfx)","archived":false,"fork":false,"pushed_at":"2019-07-15T10:02:57.000Z","size":55,"stargazers_count":17,"open_issues_count":2,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-26T19:11:55.379Z","etag":null,"topics":["bgfx","fips"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floooh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-01-25T11:17:23.000Z","updated_at":"2021-11-17T03:14:36.000Z","dependencies_parsed_at":"2024-01-14T04:07:48.664Z","dependency_job_id":null,"html_url":"https://github.com/floooh/fips-bgfx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floooh%2Ffips-bgfx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floooh%2Ffips-bgfx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floooh%2Ffips-bgfx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floooh%2Ffips-bgfx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floooh","download_url":"https://codeload.github.com/floooh/fips-bgfx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890089,"owners_count":20527031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bgfx","fips"],"created_at":"2024-10-14T02:30:26.135Z","updated_at":"2026-01-05T04:44:17.879Z","avatar_url":"https://github.com/floooh.png","language":"CMake","funding_links":[],"categories":["[Libraries](#contents)"],"sub_categories":["Graphics"],"readme":"# fips-bgfx\n\n[![Build Status](https://travis-ci.org/floooh/fips-bgfx.svg?branch=master)](https://travis-ci.org/floooh/fips-bgfx)\n\nfipsified version of bgfx (https://github.com/bkaradzic/bgfx)\n\n#### Get fips and clone fips-bgfx:\n\n```bash\n\u003e mkdir fips-workspace\n\u003e cd fips-workspace\n\u003e git clone git@github.com:floooh/fips.git\n\u003e cd fips\n\u003e ./fips clone fips-bgfx\n\u003e cd ../fips-bgfx\n```\n\n#### Build and run on command line:\n\nBuild a debug config with xcodebuild (the default build\nconfig on OSX):\n\n```bash\n\u003e ./fips build\n\u003e ./fips list targets\n\u003e ./fips run 00-helloworld\n\u003e ./fips run 01-cubes\n...\n```\n\n### Nicer command line builds with make or ninja:\n\n```bash\n# with make:\n\u003e ./fips set config osx-make-release\n\u003e ./fips build\n\u003e ./fips run 00-helloworld\n# with ninja:\n\u003e ./fips set config osx-ninja-release\n\u003e ./fips build\n\u003e ./fips run 00-helloworld\n...\n\u003e ./fips unset config\n```\n\n### Work in Xcode:\n\n```bash\n\u003e ./fips unset config\n\u003e ./fips open\n[this should open Xcode and load the fips-bgfx project]\n```\n\nMost demos require the current working directory set to\nfips-bgfx/bgfx/examples/runtime, do this in Xcode by selecting\nthe build target (e.g. 01-cubes), go to\n'Edit Scheme... -\u003e Options -\u003e Working Directory'.\n\nSee fips-bgfx/fips.yml for the list of demos that require the\nworking directory to be set.\n\n### Test for emscripten:\n\nOnly one sample currently works on emscripten, '17-drawstress':\n\n```bash\n# setup emscripten SDK for fips if not done before:\n\u003e ./fips setup emscripten\n# check if all required tools are there (e.g. python2):\n\u003e ./fips diag tools\n...\n# select emscripten build config, configure, build and run\n\u003e ./fips set config emsc-make-release\n# enable emscripten FS (FileSystem) module, in ccmake,\n# find the FIPS_EMSCRIPTEN_USE_FS option, and set it to ON,\n# then press (c)onfigure and (g)enerate:\n\u003e ./fips config\n...\n\u003e ./fips make 17-drawstress\n\u003e ./fips run 17-drawstress\n```\n\nOnce the browser opens you may have to refresh (F5) if the sample\ndoesn't load immediately.\n\n### Known Issues\n\n#### No Shader Code Generation for DirectX on non-Windows platforms\n\nShader code generation doesn't work fully because the bgfx shader\ncompiler cannot create HLSL shader on non-windows platforms, the result\nwill mess up the generated xxx.bin.h files checked in the source tree,\nso it's better to not commit generated files or generate them on windows\nif there is a need to commit them.\n\n#### Samples\n\nSome samples does not work on all platforms.\nMost specifically Emscripten and PNaCL does not support the following samples:\n\n\t- 13-stencil\n\t- 14-shadowvolumes\n\t- 16-shadowmaps\n\nFor missing bx::CtrFileReader or equivalent implementation (see BX_CONFIG_CRT_FILE_READER_WRITER).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloooh%2Ffips-bgfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloooh%2Ffips-bgfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloooh%2Ffips-bgfx/lists"}