~/bend-docscommunity

examples/indexed_offscreen.bend relies on unsafe/foreign

raw source on the hub · import bend-vulkan-library@0.1.0.0/examples/indexed_offscreen.bend as Indexed_offscreen

8 imports
import Base
import ../Vulkan.bend as V
import ../src/core.bend as Core
import ../src/constants.bend as vk
import ../deps/bend-collections/src/math/u64.bend as W
import ../shaders/spirv.bend as Shaders
import ./buffer_roundtrip.bend as Demo
import ./offscreen_roundtrip.bend as Memory

Types

type Attachment source · line 10 · raw

Data

type BoundBuffer source · line 12 · raw

Data

type Scene source · line 14 · raw

Data

Definitions

def area source · line 17 · raw

0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.RenderArea

def attachment source · line 20 · raw

@+instance:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Instance -> @+physical:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.PhysicalDevice -> @+device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> @+format:U32 -> @+aspect:U32 -> @usage:U32 -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Attachment)

def buffer source · line 29 · raw

@+instance:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Instance -> @+physical:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.PhysicalDevice -> @+device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> @size:U32 -> @usage:U32 -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(BoundBuffer)

def word_bytes source · line 37 · raw

@+word:U32 -> List<&1, U32>

def bytes source · line 40 · raw

@words:List<&1, U32> -> List<&1, U32>

def vertex source · line 48 · raw

@+screen_x:F32 -> @+screen_y:F32 -> @z:F32 -> @color:List<&1, U32> -> List<&1, U32>

def copy_words source · line 53 · raw

@words:List<&2, U32> -> List<&1, U32>

def quad source · line 60 · raw

@+left:F32 -> @+top:F32 -> @+right:F32 -> @+bottom:F32 -> @+z_left:F32 -> @+z_right:F32 -> @+color:List<&2, U32> -> List<&1, U32>

def mesh_words source · line 64 · raw

List<&1, U32>

def indices source · line 72 · raw

@+base:U32 -> List<&1, U32>

def index_values source · line 75 · raw

List<&1, U32>

def u16_bytes source · line 78 · raw

@values:List<&1, U32> -> List<&1, U32>

def camera source · line 85 · raw

@+shift:Bool -> List<&1, U32>

def pipeline_info source · line 88 · raw

@layout:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.PipelineLayout -> @pass:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.RenderPass -> @vertex:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.ShaderModule -> @fragment:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.ShaderModule -> @front:U32 -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.GraphicsPipelineCreateInfo

def transition source · line 91 · raw

@+command:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.CommandBuffer -> @image:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.ImageHandle -> @aspect:U32 -> @old:U32 -> @new:U32 -> @src_stage:U32 -> @dst_stage:U32 -> @src:U32 -> @dst:U32 -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def complete source · line 94 · raw

@+device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> @+command:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.CommandBuffer -> @+fence:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Fence -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def reset source · line 101 · raw

@+device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> @+command:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.CommandBuffer -> @fence:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Fence -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def prepare source · line 106 · raw

@+scene:Scene -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def upload source · line 116 · raw

@+device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> @vertices:BoundBuffer -> @i16:BoundBuffer -> @i32:BoundBuffer -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def create_framebuffer source · line 126 · raw

@device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> @pass:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.RenderPass -> @color:Attachment -> @depth:Attachment -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Framebuffer)

def create source · line 132 · raw

@+instance:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Instance -> @+physical:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.PhysicalDevice -> @+device:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Device -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Scene)

def draw source · line 155 · raw

@+command:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.CommandBuffer -> @first:U32 -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def begin_frame source · line 158 · raw

@+scene:Scene -> @+u32_indices:Bool -> @shift:Bool -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def finish_frame source · line 172 · raw

@+scene:Scene -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Pair(List<&1, U32>, List<&1, U32>))

def expected source · line 187 · raw

@count:Nat -> @+index:U32 -> @+shift:U32 -> @+depth:Bool -> List<&1, U32>

def check source · line 199 · raw

@pair:Pair(List<&1, U32>, List<&1, U32>) -> @colors:List<&1, U32> -> @depths:List<&1, U32> -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def frame source · line 206 · raw

@+scene:Scene -> @u32_indices:Bool -> @+reverse:Bool -> @+shift:Bool -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def run source · line 217 · raw

@+entry:0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Entry -> 0x2e83918d1bc42f45733fbb5a82ec7963/Vulkan.Action(Unit)

def main source · line 233 · raw

IO(Unit)