예제 #1
0
def create_pipeline_layout():
    global pipeline_layout

    # Pipeline layout setup
    pipeline_layout = hvk.create_pipeline_layout(
        api, device,
        hvk.pipeline_layout_create_info(set_layouts=(descriptor_set_layout, )))
예제 #2
0
def create_compute_pipeline_layout():
    global compute_pipeline_layout

    compute_pipeline_layout = hvk.create_pipeline_layout(
        api, device,
        hvk.pipeline_layout_create_info(
            set_layouts=(compute_descriptor_set_layout, )))
예제 #3
0
    def _setup_pipeline_layout(self):
        _, api, device = self.ctx

        set_layouts = self.descriptor_set_layouts or ()
        set_layouts = [l.set_layout for l in set_layouts]

        self.pipeline_layout = hvk.create_pipeline_layout(
            api, device,
            hvk.pipeline_layout_create_info(set_layouts=set_layouts))