Exemple #1
0
        public SoftwareExecutionContext(SoftwareDevice device, SoftwareCommandBuffer commandBuffer)
        {
            this.m_Device        = device;
            this.m_CommandBuffer = commandBuffer;

            this.m_VertexBuffers        = new SoftwareBuffer[P_MAX_VERTEX_BUFFERS];
            this.m_VertexBuffersOffsets = new int[P_MAX_VERTEX_BUFFERS];

            this.m_DescriptorSets = new SoftwareDescriptorSet[P_MAX_DESCRIPTOR_SETS];

            this.RenderPassScope = RenderPassScopeEnum.Outside;
        }
Exemple #2
0
 public static VkResult Create(SoftwareDevice device, VkCommandBufferAllocateInfo commandBufferAllocateInfo, out VkCommandBuffer commandBuffer)
 {
     commandBuffer = new SoftwareCommandBuffer(device, commandBufferAllocateInfo);
     return(VkResult.VK_SUCCESS);
 }
Exemple #3
0
 public override VkResult AllocateCommandBuffer(VkCommandBufferAllocateInfo commandBufferAllocateInfo, out VkCommandBuffer commandBuffer)
 {
     return(SoftwareCommandBuffer.Create(this, commandBufferAllocateInfo, out commandBuffer));
 }