Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

VkRunner: a simple Vulkan shader script test utility [Lightning Talk] (Lightning Talk)

111 views

Published on

By Neil Roberts.

A short presentation of VkRunner which is a tool to help create tests using shaders on Vulkan with a simple script to verify the results.


X.Org Developer's Conference (XDC) 2018
26th, 27th and 28th of September
A Coruña, Spain
https://www.x.org/wiki/Events/XDC2018/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

VkRunner: a simple Vulkan shader script test utility [Lightning Talk] (Lightning Talk)

  1. 1. VkRunnerA simple shader script tester for Vulkan Neil Roberts
  2. 2. • Based on Piglit’s shader_runner • Quickly test running a shader on your Vulkan driver without having to write any boilerplate code • Simple domain-specific language to specify inputs to the shader and verify the output
  3. 3. [vertex shader passthrough] [fragment shader] #version 430 layout(location = 0) out vec4 color; void main() { if (gl_FragCoord.x < 83.33333) color = vec4(1.0, 0.0, 0.0, 1.0); else if (gl_FragCoord.x < 166.66666) color = vec4(1.0, 1.0, 1.0, 1.0); else color = vec4(0.0, 0.0, 1.0, 1.0); } [test] draw rect -1 -1 2 2 probe rect rgba (1, 0, 81, 250) (1, 0, 0, 1) probe rect rgba (85, 0, 81, 250) (1, 1, 1, 1) probe rect rgba (168, 0, 81, 250) (0, 0, 1, 1) specify your shaders high-level drawing command probe the results
  4. 4. • Standalone executable or library to integrate into another framework • Vertex, tessellation, geometry, fragment and compute shaders • Specify in GLSL or SPIR-V dissassembly. Compiled on the fly for quick testing • Or precompile scripts to binary to run on platforms without the compiler • Push constants, UBOs, SSBOs, vertex data
  5. 5. Thanks github.com/igalia/vkrunner

×