O'Reilly logo

Learning Vulkan by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding compute pipelines

A compute pipeline consists of a single static compute shader stage and the pipeline layout. The compute shader stage is capable of doing massive parallel arbitrary computations. On the other hand, the pipeline layout connects the compute pipeline to the descriptor using the layout bindings. The vkCreateComputePipeline() API can be used to create a compute pipeline:

VkResult vkCreateComputePipelines( 
   VkDevice                            device, 
   VkPipelineCache                     pipelineCache, 
   uint32_t                            createInfoCount, 
   const VkComputePipelineCreateInfo*  pCreateInfos, 
   const VkAllocationCallbacks*        pAllocator, 
   VkPipeline*                         pPipelines); 

The following table describes the various fields of the vkCreateGraphicsPipelines() API:

Parameters

Description

device

This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required