-
-
Save zacharycarter/0e97b0e88ec04ce957b3649c7fcb5f24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sg_pass_action* {.importc: "struct sg_pass_action", header: headersokol_gfx, bycopy.} = object | |
start_canary*: uint32 | |
colors*: array[SG_MAX_COLOR_ATTACHMENTS, sg_color_attachment_action] | |
depth*: sg_depth_attachment_action | |
stencil*: sg_stencil_attachment_action | |
end_canary*: uint32 | |
#[ | |
/Users/zacharycarter/dev/junkers/src/junkers.nim(22, 26) Error: type mismatch: got <array[0..3, sg_color_attachment_action], int literal(0)> | |
but expected one of: | |
proc `[]`(s: string; i: BackwardsIndex): char | |
first type mismatch at position: 0 | |
proc `[]`[I: Ordinal; T](a: T; i: I): T | |
first type mismatch at position: 0 | |
proc `[]`[Idx, T, U, V](a: array[Idx, T]; x: HSlice[U, V]): seq[T] | |
first type mismatch at position: 0 | |
proc `[]`[Idx, T](a: array[Idx, T]; i: BackwardsIndex): T | |
first type mismatch at position: 0 | |
proc `[]`[Idx, T](a: var array[Idx, T]; i: BackwardsIndex): var T | |
first type mismatch at position: 0 | |
proc `[]`[T, U, V](s: openArray[T]; x: HSlice[U, V]): seq[T] | |
first type mismatch at position: 0 | |
proc `[]`[T, U](s: string; x: HSlice[T, U]): string | |
first type mismatch at position: 0 | |
proc `[]`[T](s: openArray[T]; i: BackwardsIndex): T | |
first type mismatch at position: 0 | |
proc `[]`[T](s: var openArray[T]; i: BackwardsIndex): var T | |
first type mismatch at position: 0 | |
template `[]`(s: string; i: int): char | |
first type mismatch at position: 0 | |
expression: [](state.passAction.colors, 0) | |
]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment