Skip to content

Provide separate example code for C and C++ bindings #50

@jherico

Description

@jherico

The example code for the Vulkan API on the docs site uses the C bindings pretty much exclusively, but virtually all the surrounding code is written in C++. This results in downstream users virtually always using the C bindings, even if they're writing in a C++ context.

Modern documentation sites for cross-language libraries, like the AWS CDK library, often provide examples in multiple language. I would suggest that the tutorials be expanded and updated to include fully C examples that exclusively use the C bindings and fully C++ examples that exclusively use the C++ bindings. Without setting this kind of precedent, the C++ bindings and their improved type safety and other advantages will remain underutilized.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions