Report a failed rendering-layer call (a status not 0), saying where
(context, e.g. 'shapes').
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=c_int), | intent(in) | :: | status |
a rendering-layer call's result (0: success) |
||
| character(len=*), | intent(in), | optional | :: | context |
where the call was made |
subroutine check_status(status, context) integer(c_int), intent(in) :: status !! a rendering-layer call's result (0: success) character(len=*), intent(in), optional :: context !! where the call was made if (status == 0) return if (present(context)) then write(*, '(a)') 'vkframes: a rendering-layer call failed ('//context//')' else write(*, '(a)') 'vkframes: a rendering-layer call failed' end if end subroutine check_status