forked from LunarG/VulkanSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samples_index.html
638 lines (618 loc) · 30.8 KB
/
samples_index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LunarG SDK Samples (sponsored by Valve)</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="samples_images/sorttable.js"></script>
<style>
* {
padding: 0;
margin: 0;
}
.fit { /* set relative picture size */
max-width: 30%;
max-height: 30%;
}
.center {
display: block;
margin: auto;
}
div
{
color:white;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 10%;
padding-left: 10%;
}
body
{
background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url("samples_images/bg-planetfall.jpg");
background-position: center top;
}
</style>
</head>
<body>
<img class="center fit" src="samples_images/lunarg-vulkan-sdk.png">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" language="JavaScript">
function set_body_height() { // set body height = window height
$('body').height($(window).height());
}
$(document).ready(function() {
$(window).bind('resize', set_body_height);
set_body_height()
});
</script>
<div>
<h2 align="right">Sponsored by</h2>
<h2 align="right"><a href="http://www.valvesoftware.com/"><img src="samples_images/Valve_logo.png" width="15%" height="15%"></a></h3>
<h1>Intro</h1>
<br></br>
<p style="font-size:18px;">
The following samples and layers are hosted on the LunarG <a href="https://github.com/LunarG/VulkanSamples" style="color:yellow">VulkanSamples</a> GitHub repository.
Many of these samples will be included as binaries in the LunarG Vulkan SDK. In order to obtain the LunarG Vulkan SDK, please visit our
<a href="https://vulkan.lunarg.com/signin" style="color:yellow">LunarXChange</a> host.
<br></br>
For more information on Khronos, Vulkan, or SPIR-V, visit: <a href="https://www.khronos.org/vulkan/" style="color:yellow">https://www.khronos.org</a>.
</p>
<br></br>
<h1>Sections</h1>
<p style="font-size:18px;"> (click to jump to appropriate section)</p>
<table border="0" width="50%" cellspacing="15">
<tr>
<td>
<ul>
<li><a href="#HelloVulkan" style="color:cyan">LunarG Hello Vulkan Samples</a></li>
<li><a href="#AdditionalVulkan" style="color:cyan">LunarG Additional Vulkan Samples</a></li>
<li><a href="#DemosLayers" style="color:cyan">Other Demos and Layers</a></li>
<li><a href="#Thanks" style="color:cyan">Special Thanks</a></li>
</ul>
</td>
</tr>
</table>
<br></br>
<a name="HelloVulkan"></a>
<h1>LunarG Hello Vulkan Samples</h1>
<p style="font-size:18px;">
For those who have only heard of Vulkan, and not yet written a Vulkan graphics application, the following Vulkan
samples represent a basic progression towards your first rendered 3D image using the Vulkan API. When possible,
functionality from previous steps is abstracted using utility calls to allow you to view just the code necessary for
the current step.
</p>
<br></br>
<table border="0" width="100%" cellspacing="20">
<tr>
<th style="width:12%;font-size:20px;text-align:center;">Step</th>
<th style="width:25%;font-size:20px;text-align:left;">Sample Name</th>
<th style="width:38%;font-size:20px;text-align:left;">Description</th>
<th style="width:25%;font-size:20px;text-align:center;">Primary Functions</th>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">1</td>
<td style="font-size:18px;text-align:left;">instance</td>
<td style="font-size:18px;text-align:left;">Create and destroy a Vulkan instance</td>
<td style="font-size:16px;text-align:center;">
vkCreateInstance,<br>
vkDestroyInstance
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">2</td>
<td style="font-size:18px;text-align:left;">enumerate</td>
<td style="font-size:18px;text-align:left;">Enumerate physical devices</td>
<td style="font-size:16px;text-align:center;">
vkEnumeratePhysicalDevices
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">3</td>
<td style="font-size:18px;text-align:left;">device</td>
<td style="font-size:18px;text-align:left;">Create and destroy a Vulkan device</td>
<td style="font-size:16px;text-align:center;">
vkCreateDevice,<br>
vkDestroyDevice
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">4</td>
<td style="font-size:18px;text-align:left;">initcommandbuffer</td>
<td style="font-size:18px;text-align:left;">Create a Vulkan Command buffer</td>
<td style="font-size:16px;text-align:center;">
vkCreateCommandPool,<br>
vkDestroyCommandPool,<br>
vkAllocateCommandBuffers,<br>
vkFreeCommandBuffers
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">5</td>
<td style="font-size:18px;text-align:left;">initswapchain</td>
<td style="font-size:18px;text-align:left;">Init a Vulkan Swap chain</td>
<td style="font-size:16px;text-align:center;">
PFN_vkCreateSwapchainKHR,<br>
PFN_vkDestroySwapchainKHR,<br>
PFN_vkGetSwapchainImagesKHR,<br>
PFN_vkAcquireNextImageKHR,<br>
vkGetDeviceQueue,<br>
vkCreateImageView,<br>
vkDestroyImageView
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">6</td>
<td style="font-size:18px;text-align:left;">depthbuffer</td>
<td style="font-size:18px;text-align:left;">Create a Vulkan Depth buffer</td>
<td style="font-size:16px;text-align:center;">
vkAllocateMemory,<br>
vkBindImageMemory,<br>
vkFreeMemory,<br>
vkDestroyImageView
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">7</td>
<td style="font-size:18px;text-align:left;">uniformbuffer</td>
<td style="font-size:18px;text-align:left;">Create a Vulkan Uniform buffer</td>
<td style="font-size:16px;text-align:center;">
vkCreateBuffer,<br>
vkGetBufferMemoryRequirements,<br>
vkAllocateMemory,<br>
vkMapMemory,<br>
vkUnmapMemory,<br>
vkBindBufferMemory,<br>
vkDestroyBuffer
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">8</td>
<td style="font-size:18px;text-align:left;">descriptor_pipeline_layouts</td>
<td style="font-size:18px;text-align:left;">Create Descriptor Layout and Pipeline Layout</td>
<td style="font-size:16px;text-align:center;">
vkCreateDescriptorSetLayout,<br>
vkDestroyDescriptorSetLayout,<br>
vkCreatePipelineLayout,<br>
vkDestroyPipelineLayout
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">9</td>
<td style="font-size:18px;text-align:left;">initrenderpass</td>
<td style="font-size:18px;text-align:left;">Initialize a Vulkan Render pass</td>
<td style="font-size:16px;text-align:center;">
vkCreateRenderPass,<br>
vkDestroyRenderPass
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">10</td>
<td style="font-size:18px;text-align:left;">initshaders</td>
<td style="font-size:18px;text-align:left;">
Initialize Vertex and Fragment Shaders. <br>
<i><b>NOTE:</b> This example converts shaders from GLSL into SPIR-V using GLSLang</i></td>
<td style="font-size:16px;text-align:center;">
vkCreateShaderModule,<br>
vkDestroyShaderModule
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">11</td>
<td style="font-size:18px;text-align:left;">initframebuffers</td>
<td style="font-size:18px;text-align:left;">Initialize the Vulkan Framebuffer</td>
<td style="font-size:16px;text-align:center;">
vkCreateFramebuffer,<br>
vkDestroyFramebuffer
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">12</td>
<td style="font-size:18px;text-align:left;">vertexbuffer</td>
<td style="font-size:18px;text-align:left;">Create a Vulkan Vertex buffer</td>
<td style="font-size:16px;text-align:center;">
vkCmdBindVertexBuffers
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">13</td>
<td style="font-size:18px;text-align:left;">allocdescriptorsets</td>
<td style="font-size:18px;text-align:left;">Allocate, setup, and destroy a Vulkan Descriptor Set</td>
<td style="font-size:16px;text-align:center;">
vkCreateDescriptorPool,<br>
vkAllocateDescriptorSets,<br>
vkUpdateDescriptorSets,<br>
vkDestroyDescriptorPool
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">14</td>
<td style="font-size:18px;text-align:left;">initpipeline</td>
<td style="font-size:18px;text-align:left;">Create a Vulkan Graphics Pipelinee</td>
<td style="font-size:16px;text-align:center;">
vkCreatePipelineCache,<br>
vkDestroyPipelineCache,<br>
vkCreateGraphicsPipelines,<br>
vkDestroyPipeline
</td>
</tr>
<tr>
<td style="font-size:18px;text-align:center;">15</td>
<td style="font-size:18px;text-align:left;">drawcube</td>
<td style="font-size:18px;text-align:left;">Draw a 3D cube using Vulkan</td>
<td style="font-size:16px;text-align:center;">
PFN_vkQueuePresentKHR,<br>
vkCmdBeginRenderPass,<br>
vkCmdEndRenderPass,<br>
vkCmdDraw,<br>
vkQueueSubmit,<br>
vkCmdPipelineBarrier,<br>
vkCreateSemaphore,<br>
vkDestroySemaphore,<br>
vkCreateFence,<br>
vkDestroyFence<br>
vkWaitForFences
</td>
</tr>
</table>
<a href="samples_images/drawcube.png">
<img class="center" height="200" width="200" src="samples_images/drawcube.png">
</a>
<br></br>
<br></br>
<hr>
<br></br>
<a name="AdditionalVulkan"></a>
<h1>LunarG Additional Vulkan Samples</h1>
<br></br>
<p style="font-size:18px;">These are additional LunarG created samples which build upon the above ones to provide
more coverage beyond basic rendering.
<br></br>
<h3>Community Sample Submission Policy</h3>
<p>
LunarG is interested in sharing your samples with the SDK. If you are interested in providing
a sample for the Vulkan SDK, refer to the README-controb.md file found with the Vulkan Sample
source. All contributed samples must be released under a BSD-style license.
</p>
<br></br>
<b>NOTE:</b>Items are sortable by column.</p>
<br></br>
<table class="sortable" width="100%" cellspacing="20">
<tr>
<th style="width:20%;font-size:20px;text-align:left;">Sample Name</th>
<th style="width:10%;font-size:20px;text-align:center;">Sample Image</th>
<th style="width:30%;font-size:20px;text-align:center;">Description</th>
<th style="width:20%;font-size:20px;text-align:center;">Noteable Features</th>
<th style="width:10%;font-size:20px;text-align:center;">Vulkan Version</th>
<th style="width:10%;font-size:20px;text-align:center;">Group</th>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">copyblitimage</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/CopyBlitImage.png">
<img class="center" width="60" height="60" src="samples_images/CopyBlitImage.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Copy/Blit an image from one buffer to another.</td>
<td style="font-size:16px;text-align:center;">VkImageCopy<br>VkImageBlit</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">dbgcreatemsgcallback</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Create and Destroy a Debug message callback for Vulkan.</td>
<td style="font-size:16px;text-align:center;">PFN_vkDbgCreateMsgCallback<br>PFN_vkDbgDestroyMsgCallback</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Debug-01</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">drawsubpasses</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/drawsubpasses.png">
<img class="center" width="60" height="60" src="samples_images/drawsubpasses.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Render two multi-subpass render passes with different framebuffer attachments.</td>
<td style="font-size:16px;text-align:center;">Multiple Sub-passes</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">drawtexturedcube</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/drawtexturedcube.png">
<img class="center" width="60" height="60" src="samples_images/drawtexturedcube.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Draw a textured 3D cube in Vulkan.</td>
<td style="font-size:16px;text-align:center;">Simple texturing</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Textured-Cube-2</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">dynamicuniform</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/dynamicuniform.png">
<img class="center" width="60" height="60" src="samples_images/dynamicuniform.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Draw 2 cubes using a Dynamic Uniform Buffer.</td>
<td style="font-size:16px;text-align:center;">VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">enable_validation_with_callback</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Use Common Vulkan Validation Layers to Evaulate Usage.</td>
<td style="font-size:16px;text-align:center;">Layer usage</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Debug-02</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">enumerate-adv</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Explore the Physical Device properties.</td>
<td style="font-size:16px;text-align:center;">Physical Device Info</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Hello-Vulkan-02B (optional)</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">immutable_sampler</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/immutable_sampler.png">
<img class="center" width="60" height="60" src="samples_images/immutable_sampler.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use an Immutable Sampler to texture a cube.</td>
<td style="font-size:16px;text-align:center;">VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER<br>VkDescriptorSetLayoutBinding.pImmutableSamplers</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">inittexture</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Setup a texture and sampler.</td>
<td style="font-size:16px;text-align:center;">vkGetImageSubresourceLayout<br>vkCmdCopyImage<br>vkCreateImageView<br>vkDestroyImageView<br>vkCreateSampler<br>vkDestroySampler</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Textured-Cube-1</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">instance_extension_properties</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Get global extension properties to know what extension are available to enable at CreateInstance time.</td>
<td style="font-size:16px;text-align:center;">vkEnumerateInstanceExtensionProperties</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Hello-Vulkan-01B (optional)</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">instance_layer_extension_properties</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Get list of global layers and their associated extensions, if any.</td>
<td style="font-size:16px;text-align:center;">vkEnumerateInstanceExtensionProperties</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Hello-Vulkan-01D (optional)</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">instance_layer_properties</td>
<td style="font-size:16px;text-align:center;"></td>
<td style="font-size:16px;text-align:center;">Get global layer properties to know what layers are available to enable at CreateInstance time.</td>
<td style="font-size:16px;text-align:center;">vkEnumerateInstanceLayerProperties</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Hello-Vulkan-01C (optional)</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">multiple_sets</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/multiplesets.png">
<img class="center" width="60" height="60" src="samples_images/multiplesets.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use multiple descriptor sets to draw a textured cube.</td>
<td style="font-size:12x;text-align:center;">VkWriteDescriptorSet<br>vkUpdateDescriptorSets</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">multithreadcmdbuf</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/multithreadedcmdbuf.png">
<img class="center" width="60" height="60" src="samples_images/multithreadedcmdbuf.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use per-thread command buffers to draw 3 triangles.</td>
<td style="font-size:16px;text-align:center;">Multi-threading</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">occlusionquery</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/occlusionquery.png">
<img class="center" width="60" height="60" src="samples_images/occlusionquery.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use occlusion query to determine if drawing renders any samples. This could be used to quickly determine if more expensive rendering should be done.</td>
<td style="font-size:16px;text-align:center;">vkCmdBeginQuery<br>vkCmdCopyQueryPoolResults<br>vkCmdEndQuery<br>vkCreateQueryPool<br>vkDestroyQueryPool<br>vkGetQueryPoolResults</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">pipeline_cache</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/pipeline_cache.png">
<img class="center" width="60" height="60" src="samples_images/pipeline_cache.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Create and use a pipeline cache accross runs.</td>
<td style="font-size:16px;text-align:center;">vkCreatePipelineCache<br>vkGetPipelineCacheData</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">push_constants</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/push_constants.png">
<img class="center" width="60" height="60" src="samples_images/push_constants.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use push constants in a simple shader, validate the correct value was read.</td>
<td style="font-size:16px;text-align:center;">vkCmdPushConstants</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">secondarycmd</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/secondarycmd.png">
<img class="center" width="60" height="60" src="samples_images/secondarycmd.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Draw several cubes using primary and secondary command buffers.</td>
<td style="font-size:16px;text-align:center;">VK_COMMAND_BUFFER_LEVEL_SECONDARY<br>VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">separate_image_sampler</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/separate_image_sampler.png">
<img class="center" width="60" height="60" src="samples_images/separate_image_sampler.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use separate image and sampler in descriptor set and shader to draw a textured cube.</td>
<td style="font-size:16px;text-align:center;">VkSampler</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">spirv_assembly</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/spirv_assembly.png">
<img class="center" width="60" height="60" src="samples_images/spirv_assembly.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Demonstrate how to use SPIR-V shaders with inline assembly.</td>
<td style="font-size:16px;text-align:center;">SPIR-V</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">spirv_specialization</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/spirv_specialization.png">
<img class="center" width="60" height="60" src="samples_images/spirv_specialization.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">This sample creates a mini-ubershader that changes its behavior based on specialization constants provided at pipeline creation.</td>
<td style="font-size:16px;text-align:center;">SPIR-V</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">template</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/template.png">
<img class="center" width="60" height="60" src="samples_images/template.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Template sample to start from. Draw textured cube with mostly helpers.</td>
<td style="font-size:16px;text-align:center;">Beginning Framework</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
<tr>
<td style="font-size:16px;text-align:left;">texelbuffer</td>
<td style="font-size:16px;text-align:center;">
<a href="samples_images/texelbuffer.png">
<img class="center" width="60" height="60" src="samples_images/texelbuffer.png">
</a>
</td>
<td style="font-size:16px;text-align:center;">Use a texel buffer to draw a magenta triangle.</td>
<td style="font-size:16px;text-align:center;">vkCreateBufferView<br>vkDestroyBufferView</td>
<td style="font-size:16px;text-align:center;">1.0.3</td>
<td style="font-size:16px;text-align:center;">Vulkan-Extended</td>
</tr>
</table>
<br></br>
<hr>
<br></br>
<a name="DemosLayers"></a>
<h1>Other Demos and Layers</h1>
<br></br>
<p>
The following are additional Vulkan Demos and Layers included in the LunarG Vulkan SDK.
</p>
<br></br>
<br></br>
<h2>Demos</h2>
<br></br>
<table class="sortable" width="100%">
<tr>
<th style="width:15%;font-size:20px;text-align:left;">Name</th>
<th style="width:10%;font-size:20px;text-align:center;">Image</th>
<th style="width:20%;font-size:20px;text-align:center;">Contributor</th>
<th style="width:35%;font-size:20px;text-align:center;">Description</th>
<th style="width:10%;font-size:20px;text-align:center;">Vulkan Version</th>
</tr>
<tr>
<td style="font-size:18px;text-align:left;">Hologram</td>
<td style="font-size:18px;text-align:center;">
<a href="samples_images/Hologram.png">
<img class="center" width="60" height="60" src="samples_images/Hologram.png">
</a>
</td>
<td style="font-size:18px;text-align:center;">Google</td>
<td style="font-size:18px;text-align:center;">Particle style demo using multiple threads to render.</td>
<td style="font-size:18px;text-align:center;">1.0.3</td>
</tr>
</table>
<br></br>
<br></br>
<h2>Layers</h2>
<br></br>
<table class="sortable" width="100%">
<tr>
<th style="width:15%;font-size:20px;text-align:left;">Name</th>
<th style="width:10%;font-size:20px;text-align:center;">Layer Image</th>
<th style="width:20%;font-size:20px;text-align:center;">Contributor</th>
<th style="width:35%;font-size:20px;text-align:center;">Description</th>
<th style="width:10%;font-size:20px;text-align:center;">Vulkan Version</th>
</tr>
<tr>
<td style="font-size:18px;text-align:left;">overlay</td>
<td style="font-size:18px;text-align:center;">
<a href="samples_images/Overlay.png">
<img class="center" width="60" height="60" src="samples_images/Overlay.png">
</a>
</td>
<td style="font-size:18px;text-align:center;">Google</td>
<td style="font-size:18px;text-align:center;">Overlays text on the current application.</td>
<td style="font-size:18px;text-align:center;">1.0.3</td>
</tr>
</table>
<br></br>
<br></br>
<hr>
<br></br>
<a name="Thanks"></a>
<h1>Additional thanks</h1>
<br></br>
<table border="0" width="100%" cellspacing="15">
<tr>
<td>
<ul>
<li style="font-size:17px">
Stuart Langridge for making the sorttable javascript which is freely available
(http://www.kryogenix.org/code/browser/sorttable/). This javascript plug-in allows
you to sort the sample tables above by column.
</li>
</ul>
</td>
</tr>
</table>
</div>
</body>
</html>