diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-02-01 13:12:18 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-02-01 13:12:18 +0100 |
| commit | e3ca0f8023b8e8fa4e90adeb0e65970215ecfe3a (patch) | |
| tree | 729031b33eef4ddf6823cb26dae05aef5eec7ecb | |
| parent | f982d1817358df95ee843cbca991ee893634b2a7 (diff) | |
add compute flag to sg_query_pipeline_desc
| -rw-r--r-- | sokol_gfx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index c3b11d62..33c75d4b 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -3476,7 +3476,7 @@ typedef struct sg_trace_hooks { sg_query_sampler_info() sg_query_shader_info() sg_query_pipeline_info() - sg_query_pass_info() + sg_query_attachments_info() */ typedef struct sg_slot_info { sg_resource_state state; // the current state of this resource slot @@ -19995,6 +19995,7 @@ SOKOL_API_IMPL sg_pipeline_desc sg_query_pipeline_desc(sg_pipeline pip_id) { _sg_clear(&desc, sizeof(desc)); const _sg_pipeline_t* pip = _sg_lookup_pipeline(&_sg.pools, pip_id.id); if (pip) { + desc.compute = pip->cmn.is_compute; desc.shader = pip->cmn.shader_id; desc.layout = pip->cmn.layout; desc.depth = pip->cmn.depth; |