예제 #1
0
 public void SetRayTracingPipeline(GraphicsPipeline pipelineState)
 {
     //vkCmdBindPipeline(NativeCommandBuffer, VkPipelineBindPoint.RayTracingNV, pipelineState.rayTracinPipeline);
 }
예제 #2
0
 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)*/);
 }
예제 #3
0
 public void SetGraphicPipeline(GraphicsPipeline pipeline)
 {
     vkCmdBindPipeline(handle, VkPipelineBindPoint.Graphics, pipeline.graphicsPipeline);
 }