Skip to content

Commit 22b07d4

Browse files
dsabadie-datadogColonelThirtyTwo
authored andcommitted
Query API design doc.
1 parent 2bd413f commit 22b07d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/design.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,16 @@ vertex semantics. Tessellations are not rendered directly, but instead require p
860860

861861
## Queries
862862

863+
[luminance] also provides a _query_ API that is currently not very developed, as not being the target of the ecosystem.
864+
You can currently query a couple of features:
865+
866+
- Backend author: a `String` representing the “vendor” or “company” of your GPU.
867+
- Backend name: a `String` representing the name of the backend.
868+
- Backend version: a `String` giving the version of the backend.
869+
- Backend shading language version: a `String` giving the version of the backend’s shading language version.
870+
- Backend maximum number of _a scarce resource_: different `usizes` providing maximum amount of scarce resources. For
871+
instance, you will find the maximum number of textures an array of textures can hold, etc.
872+
863873
[luminance]: https://crates.io/crates/luminance
864874
[luminance-derive]: https://crates.io/crates/luminance-derive
865875
[luminance-front]: https://crates.io/crates/luminance-front

0 commit comments

Comments
 (0)