Skip to content

Commit

Permalink
issue#56: Fix return array from createPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
realitix committed Jun 20, 2019
1 parent 67856fc commit 8fc302d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion example/example_sdl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ def get_swap_extent(capabilities):
basePipelineHandle=None,
basePipelineIndex=-1)

pipeline = vkCreateGraphicsPipelines(logical_device, None, 1, [pipeline_create], None)
pipelines = vkCreateGraphicsPipelines(logical_device, None, 1, [pipeline_create], None)
pipeline = pipelines[0]


# Framebuffers creation
Expand Down
14 changes: 6 additions & 8 deletions generator/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,12 @@ def format_return_member(member):
t = member['type']

static_count = None
if '@len' in member and '::' in member['@len']:
lens = member['@len'].split('::')
#static_count = {'key': lens[0], 'value': lens[1]}
static_count = lens[0]+'.'+lens[1]

# see vkCreateGraphicsPipelines for exemple
#if '@len' in member:
# static_count = {'key:'}
if '@len' in member:
# see vkCreateGraphicsPipelines for exemple
static_count = member['@len']
if '::' in static_count:
lens = member['@len'].split('::')
static_count = lens[0]+'.'+lens[1]

# see vkGetRayTracingShaderGroupHandlesNV for exemple
if '@len' in member and 'dataSize' in member['@len']:
Expand Down

0 comments on commit 8fc302d

Please sign in to comment.