KhronosGroup / KhronosGroup/Vulkan-Hpp

More constructors and member functions for `vk::raii::PluralType`

Open
#2,419 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
3.8k
Forks
374
Avg merge
23h 4m
Merged PRs (30d)
32

Description

From #2413:

It would be nice to implement an `operator*()` or `::value()` member function for `vk::raii::PluralType` that returns a `std::vector` (note: **no `::raii`**); this would recursively call `operator*()`.

And similarly to construct the plural types from an `ArrayProxy&&` (note temporary so that the resultant container takes ownership of the arguments), and also note **again no `::raii`**). This would facilitate interoperation with other libraries.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the vk::raii::PluralType definitions and the related work described in #2413. Check how plural types currently construct and expose their values, then verify that recursive conversion to std::vector and construction from rvalue ArrayProxy support the stated interoperability requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.