{"id":18307323,"url":"https://github.com/zig-gamedev/zpix","last_synced_at":"2025-04-09T11:21:05.257Z","repository":{"id":261134671,"uuid":"883375291","full_name":"zig-gamedev/zpix","owner":"zig-gamedev","description":"Performance markers for Microsoft's PIX profiler in Zig.","archived":false,"fork":false,"pushed_at":"2025-03-25T20:49:38.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T21:32:44.654Z","etag":null,"topics":["gamedev","graphics","pix","profiling","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zig-gamedev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T21:19:02.000Z","updated_at":"2025-03-25T20:49:42.000Z","dependencies_parsed_at":"2024-11-04T22:26:02.686Z","dependency_job_id":"0cb708db-ff88-425e-9eeb-85b60d03708d","html_url":"https://github.com/zig-gamedev/zpix","commit_stats":null,"previous_names":["zig-gamedev/zpix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zig-gamedev","download_url":"https://codeload.github.com/zig-gamedev/zpix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027782,"owners_count":21035666,"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":["gamedev","graphics","pix","profiling","zig"],"created_at":"2024-11-05T16:03:52.639Z","updated_at":"2025-04-09T11:21:05.216Z","avatar_url":"https://github.com/zig-gamedev.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [zpix](https://github.com/zig-gamedev/zpix)\n\nPerformance markers for [Microsoft's PIX profiler](https://devblogs.microsoft.com/pix/documentation/) in Zig.\n\n## Getting started\n\nExample `build.zig`:\n\n```zig\npub fn build(b: *std.Build) void {\n    const exe = b.addExecutable(.{ ... });\n\n    const zpix = b.dependency(\"zpix\", .{\n        .enable = true,\n        .path = @as([]const u8, ...folder containing WinPixGpuCapturer.dll, typically directory under C:\\Program Files\\\\Microsoft PIX),\n    });\n    exe.root_module.addImport(\"zpix\", zpix.module(\"root\"));\n}\n```\n\nLoad GPU capture library before making any D3D12 calls:\n\n```zig\nconst zpix = @import(\"zpix\");\n\npub fn main() !void {\n    const pix_library = try zpix.loadGpuCapturerLibrary();\n    defer pix_library.deinit();\n    ...\n}\n```\n\nThen using the PIX UI:\n1. Under Select Target Process --\u003e Attach\n2. Select process\n3. Select Attach\n4. Under GPU Capture, click on camera icon\n\n## Advanced usage\nFor [programmic capture](https://devblogs.microsoft.com/pix/programmatic-capture/) use `beginCapture`/`endCapture`.\n\nIf process has multiple windows, target one for GPU capture using `setTargetWindow`.\n\n[Full PIX documentation](https://devblogs.microsoft.com/pix/documentation/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-gamedev%2Fzpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzig-gamedev%2Fzpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-gamedev%2Fzpix/lists"}