The rendering layer's version string which (see vkf_version), '' if unknown.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | which |
1 VSG ... 5 the Vulkan loader |
function version_string(which) result(s) integer, intent(in) :: which !! 1 VSG ... 5 the Vulkan loader character(len=:), allocatable :: s character(kind=c_char, len=256) :: buf integer(c_int) :: n n = vkf_version(int(which, c_int), buf, len(buf, kind=c_int)) s = '' if (n > 0) s = buf(1:min(int(n), len(buf))) end function version_string