vk-gears-offscreen

Graphics and Screen4.0 (8.x)Screen Graphics Subsystem Developer's GuideAPIProgrammingUtilities

Render animated gears into offscreen buffers

Syntax:

vk-gears-offscreen [-dumpframe=frame_number]
                   [-fomrat=pixel_format]
                   [-frame-limit=frame_limit]
                   [-gpu=gpu_index]
                   [-linear]
                   [-nbuffers=count]
                   [-size=widthxheight]
                   [-validate]
                   [-screen_buffer]
            

Runs on:

QNX OS

Vulkan options:

-dumpframe=frame_number
Set the frame_number to be saved in a BMP file where frame_number is greater than zero (0). Once set, a file is created in the current working directory using the following naming convention:
pixel_format-widthxheight-frame_number
This feature supports only 32-bit RGBA formats.
-fomrat= pixel_format
Set the pixel format from the following values:
  • rgb565
  • rgba5551
  • rgba4444
  • rgba8888 (default format)
  • bgra8888
  • rgba1010102
  • bgra1010102
-frame-limit= frame_render
Limit the number of frames rendered. Default is unlimited (-1.)
-gpu=gpu_index

Use gpu_index to specify the GPU to use. If this option is not set, the default is -1, auto-detect the fasted GPU.

-linear
Use VK_IMAGE_TILING_LINEAR instead of VK_IMAGE_TILING_OPTIMAL to test performance.
-nbuffers=count
Set the number of offscreen buffers to be cycled. The default is 3.
-size=widthxheight
Set the size as specified, using integer values for width and height, of the viewport. The default size is 1920x1080.
-validate

Enable installed validation layers.

Screen options:

-screen_buffer
Use Screen pixmap's buffer for rendering. Requires the VK_QNX_external_memory_screen_buffer extension.

Description:

The vk-gears-offscreen binary is a command-line tool that renders animated gears to offscreen buffers with the option to dump given frames to a BMP file. When -screen_buffer is specified, the offscreen buffers are backed by Screen buffer external memory that is imported to the Vulkan device's memory.

Page updated: