KhronosGroup / KhronosGroup/SPIRV-Tools

Consider adding a C API to set a context's message consumer

Open
#1,275 0 comments 0 reactions 0 assignees View on GitHub
component:general-utility enhancement
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

There is no C API to set the message consumer for an spv_context.

The C API would have to be a pointer-to-function as the consumer.

On the other hand, I think I'd like a *simpler* message consumer that just consumes error strings. Should the C-based consumer be that simpler thing? Or should we bridge the gap with a easily-accessible message-to-string adapter?

Contributor guide

Open the contributing guide

Research direction

Start by examining the existing spv_context interface and message-consumer APIs mentioned in the issue. Resolve whether the C API should accept a function pointer for full messages or expose an error-string consumer, then define the API and its completion criteria after that design decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
api, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.