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 ...

Get Learning Vulkan now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.