public void SetRayTracingPipeline(GraphicsPipeline pipelineState) { //vkCmdBindPipeline(NativeCommandBuffer, VkPipelineBindPoint.RayTracingNV, pipelineState.rayTracinPipeline); }
public void PushConstant <T>(GraphicsPipeline pipelineLayout, ShaderStage stageFlags, T data, uint offset = 0) where T : unmanaged { vkCmdPushConstants(handle, pipelineLayout._pipelineLayout, stageFlags.StageToVkShaderStageFlags(), offset, (uint)Interop.SizeOf <T>(), (void *)&data /*Interop.AllocToPointer<T>(ref data)*/); }
public void SetGraphicPipeline(GraphicsPipeline pipeline) { vkCmdBindPipeline(handle, VkPipelineBindPoint.Graphics, pipeline.graphicsPipeline); }