Explain in the tutorial what physicalDevice.template mean

Open Beginner friendly
#544 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
documentation

Research direction

Find the tutorial section containing isDeviceSuitable and the physicalDevice.template expression; the issue does not name a file or test. Explain why template appears there and how the expression yields the features structure chain. Done means an average C++20 reader can follow that syntax from the tutorial.

Written by the indexing model from the issue text.

Description

I am familiar with c++20 I thought enough to read the tutorial but in the function isDeviceSuitable, checking for the features I could not understand what physicalDevice.template stand for. It returns a structurechain in the features variable .
I know this is not vulkan related but I believe an average c++ 20 programmer will be baffled, so pls. provide a little explanation...

Dominant language
C++
Stars
444
Forks
145
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KhronosGroup/Vulkan-Tutorial

All issues in KhronosGroup/Vulkan-Tutorial

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.