summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/build_toc.ps12
-rwxr-xr-xdocs/build_toc.sh2
-rw-r--r--docs/gfx-user-guide/01-getting-started.md264
-rw-r--r--docs/gfx-user-guide/index.md25
-rw-r--r--docs/gfx-user-guide/nav.html5
-rw-r--r--docs/gfx-user-guide/toc.html18
-rw-r--r--docs/gfx-user-guide/unsupported-formats.md266
7 files changed, 1 insertions, 581 deletions
diff --git a/docs/build_toc.ps1 b/docs/build_toc.ps1
index ad727713d..543a8bc20 100644
--- a/docs/build_toc.ps1
+++ b/docs/build_toc.ps1
@@ -5,8 +5,6 @@ $job = Start-Job -ArgumentList $PSScriptRoot -ScriptBlock {
Add-Type -ReferencedAssemblies $assemblies -TypeDefinition $code -Language CSharp
$path = Join-Path -Path $args[0] -ChildPath "user-guide"
[toc.Builder]::Run($path);
- $path = Join-Path -Path $args[0] -ChildPath "gfx-user-guide"
- [toc.Builder]::Run($path);
}
Wait-Job $job
Receive-Job -Job $job
diff --git a/docs/build_toc.sh b/docs/build_toc.sh
index 9c197cad6..1776686a8 100755
--- a/docs/build_toc.sh
+++ b/docs/build_toc.sh
@@ -99,7 +99,7 @@ if ! mcs -r:System.Core "$temp_dir/temp_program.cs" -out:"$temp_dir/toc-builder.
exit 1
fi
-for dir in "user-guide" "gfx-user-guide"; do
+for dir in "user-guide"; do
if [ -d "$docs_dir/$dir" ]; then
if [ "$check_only" -eq 1 ]; then
# Ensure working directory is clean
diff --git a/docs/gfx-user-guide/01-getting-started.md b/docs/gfx-user-guide/01-getting-started.md
deleted file mode 100644
index ae270450a..000000000
--- a/docs/gfx-user-guide/01-getting-started.md
+++ /dev/null
@@ -1,264 +0,0 @@
----
-layout: user-guide
----
-
-Getting Started with Slang Graphics Layer
-============================================
-
-[//]: # (ShortTitle: Getting Started)
-
-In this article, we provide instructions on installing the graphics layer into your application, and demonstrate the basic use of the graphics layer via a simple compute shader example. We will use the same [hello-world.slang](https://github.com/shader-slang/slang/blob/master/examples/hello-world/hello-world.slang) shader from the `hello-world` example in the [Slang getting started tutorial](../user-guide/01-get-started.html).
-
-Installation
-------------------
-
-### Obtain Release Package
-
-The Slang graphics library is implemented in `gfx.dll` (`libgfx.so` in unix systems). Since Slang is tightly integrated into the graphics layer, you need to include both `slang.dll` and `gfx.dll` in your application. Official Slang releases provide prebuilt binaries for both libraries as well as the header files to use them. If you prefer to build the libraries yourself, please follow [build instructions](../building).
-
-### Install Header Files
-Once you have built or obtained a Slang release, make the following header files from the release package accessible to your application:
-- `slang-gfx.h`
-- `slang.h`
-- `slang-com-ptr.h`
-- `slang-com-helper.h`
-
-### Linking the Library
-On Windows (with `msvc`), make sure that `gfx.lib` is provided as linker input via the `Linker->Input->Additional Dependencies` project configuration. On Unix systems, make sure to pass `-lgfx` when compiling your application.
-
-Creating a GPU Device
----------------------------
-
-To start using the graphics layer, create an `IDevice` object by calling `gfxCreateDevice`. The `IDevice` interface is the main entry-point to interact with the graphics layer. It represent GPU device context where all interactions with the GPU take place.
-
-```cpp
-#include "slang-gfx.h"
-
-using namespace gfx;
-
-IDevice* gDevice = nullptr;
-
-void initGfx()
-{
- IDevice::Desc deviceDesc = {};
- gfxCreateDevice(deviceDesc, &gDevice);
-}
-```
-
-The `IDevice::Desc` struct passed to `gfxCreateDevice` defines many configurations on how a device shall be created. Most notably, the `deviceType` field specifies what underlying graphics API to use. By default, `gfxCreateDevice` will attempt to use the best API available on current platform. On Windows, the layer will prefer to use `D3D12` but will also try to use `Vulkan`, `D3D11`, `OpenGL` in order, in case the former API isn't available. On Unix systems, it will always default to `Vulkan` since this is the only API that supports full Graphics capabilities. A user can always specify the `deviceType` field to force the layer to use a specific API. If the device creation succeeds, `gfxCreateDevice` will return `SLANG_OK(0)`.
-
-Similar to the Slang API, objects created by the graphics layer also conforms to the COM standard. The user to responsible for calling `release` method on every object returned to the user by the layer to prevent memory leaks.
-
-Enabling the Debug Layer
---------------------------
-
-The Slang Graphics Layer provides a debug layer that can be enabled to perform additional validations to ensure correctness. To enable the debug layer, simply call `gfxEnableDebugLayer` before calling `gfxCreateDevice`.
-
-To receive diagnostic messages, you need to create a class that implements the `IDebugCallback` interface, and call `gfxSetDebugCallback` to provide the callback instance to the graphics layer. For example:
-
-```cpp
-struct MyDebugCallback : public IDebugCallback
-{
- virtual SLANG_NO_THROW void SLANG_MCALL handleMessage(
- DebugMessageType type,
- DebugMessageSource source,
- const char* message) override
- {
- printf("%s\n", message);
- }
-};
-
-MyDebugCallback gCallback;
-void initGfx()
-{
- gfxEnableDebugLayer();
- gfxSetDebugCallback(&gCallback);
-
- IDevice::Desc deviceDesc = {};
- gfxCreateDevice(&deviceDesc, &gDevice);
-}
-```
-
-
-Creating a Command Queue
-------------------------------
-A command queue is where the GPU device takes commands from the application to execute. To create a command queue, call `IDevice::createCommandQueue`.
-```cpp
-ICommandQueue* gQueue = nullptr;
-
-ICommandQueue::Desc queueDesc = {ICommandQueue::QueueType::Graphics};
-device->createCommandQueue(queueDesc, &gQueue);
-```
-
-Allocating a Command Buffer
-------------------------------
-A command buffer is treated as a _transient_ resource by the graphics layer. A transient resource is required by the GPU during execution of a task, and are no longer needed when the execution has completed. Slang graphics layer provides an `ITransientResourceHeap` object to efficiently manage the life cycle of transient resources. In order to allocate a command buffer, we need to create an `ITransientResourceHeap` object first by calling `IDevice::createTransientResourceHeap`.
-
-```cpp
-ITransientResourceHeap* gTransientHeap;
-
-ITransientResourceHeap::Desc transientHeapDesc = {};
-transientHeapDesc.constantBufferSize = 4096;
-device->createTransientResourceHeap(transientHeapDesc, &gTransientHeap);
-```
-
-With a `TransientResourceHeap`, we can call `createCommandBuffer` method to allocate a command buffer:
-
-```cpp
-ICommandBuffer* commandBuffer;
-gTransientHeap->createCommandBuffer(&commandBuffer);
-```
-
-A user should regularly call `ITransientResourceHeap::synchronizeAndReset` to recycle all previously allocated transient resources. A standard practice is to create two `TransientResourceHeap`s in a double-buffered renderer, and alternate the transient heap on each frame to allocate command buffers and other transient resources. With this setup, the application can call `synchronizeAndReset` at start of each frame on the corresponding transient resource heap to make sure all transient resources are timely recycled.
-
-Creating Buffer Resource
-------------------------------
-We need to create the buffer resources used our `hello-world` shader as input and output. This can be done via `IDevice::createBufferResource` method. When creating a resource, the user must specify a resource state that the resource will be in by default, as well as all allowed resource states the resource can be in. Resource states in the graphics layer follows the same model of resource states in D3D12, and the user can also assume the same automatic resource promotion/demotion behavior in D3D12.
-
-```cpp
-const int numberCount = 4;
-float initialData[] = {0.0f, 1.0f, 2.0f, 3.0f};
-IBufferResource::Desc bufferDesc = {};
-bufferDesc.sizeInBytes = numberCount * sizeof(float);
-bufferDesc.format = Format::Unknown;
-bufferDesc.elementSize = sizeof(float);
-bufferDesc.defaultState = ResourceState::UnorderedAccess;
-bufferDesc.allowedStates = ResourceStateSet(ResourceState::UnorderedAccess,
- ResourceState::ShaderResource);
-IBufferResource* inputBuffer0;
-SLANG_RETURN_ON_FAIL(device->createBufferResource(
- bufferDesc,
- (void*)initialData,
- &inputBuffer0));
-```
-
-
-Creating a Pipeline State
----------------------------
-
-A pipeline state object encapsulates the shader program to execute on the GPU device, as well as other fix function states for graphics rendering. In this example, we will be compiling and running a simple compute shader written in Slang. To do that we need to create a compute pipeline state from a Slang `IComponentType`. We refer the reader to the (Slang getting started tutorial)[../user-guide/01-getting-started.html] on how to create a Slang `IComponentType` from a shader file. The following source creates a Graphics layer `IPipelineState` object from a shader module represented by a `slang::IComponentType` object:
-
-```cpp
-void createComputePipelineFromShader(
- IComponentType* slangProgram,
- IPipelineState*& outPipelineState)
-{
- // The `IComponentType` parameter that represents the compute
- // kernel, we can use it to create a `IShaderProgram` object in the graphics
- // layer.
- IShaderProgram* shaderProgram = nullptr;
- IShaderProgram::Desc programDesc = {};
- programDesc.pipelineType = PipelineType::Compute;
- programDesc.slangProgram = slangProgram;
- gDevice->createShaderProgram(programDesc, &shaderProgram);
-
- // Create a compute pipeline state from `shaderProgram`.
- ComputePipelineStateDesc pipelineDesc = {};
- pipelineDesc.program = shaderProgram;
- gDevice->createComputePipelineState(pipelineDesc, &outPipelineState);
-
- // Since we no longer need to use `shaderProgram` after creating
- // a pipeline state, we should release it to prevent memory leaks.
- shaderProgram->release();
-}
-```
-
-Recording Commands to Run a Compute Shader
-------------------------------------
-
-[//]: # (ShortTitle: Recording Commands)
-
-Now that we have created all the resources and allocated a command buffer, we can start recording commands to
-set the compute pipeline state, bind shader parameters, and dispatch a kernel launch.
-
-Since we are only using compute commands, we begin the recording by calling `ICommandBuffer::encodeComputeCommands`. This methods returns a transient `IComputeCommandEncoder` object for accepting actual compute commands.
-
-```cpp
-IComputeCommandEncoder* encoder = commandBuffer->encodeComputeCommands();
-```
-
-The first command is to bind the pipeline state we created earlier:
-
-```cpp
-IShaderObject* rootObject = encoder->bindPipeline(pipelineState);
-```
-
-Binding a pipeline state yields a transient `IShaderObject` object. We can use the `IShaderObject` instance to bind shader parameters. For the `hello-world` shader, we need to bind three parameters: `buffer0`, `buffer1` and `result`.
-
-```cpp
-// Create a resource view for buffer0.
-IBufferView* buffer0View;
-{
- IResourceView::Desc viewDesc = {};
- viewDesc.type = IResourceView::Type::ShaderResource;
- viewDesc.format = Format::Unknown;
- SLANG_RETURN_ON_FAIL(device->createBufferView(inputBuffer0, viewDesc, &buffer0View));
-}
-// Bind the resource view to shader.
-rootObject->setResource(ShaderOffset{0,0,0}, buffer0View);
-
-// Create a resource view for buffer1.
-IBufferView* buffer1View;
-{
- IResourceView::Desc viewDesc = {};
- viewDesc.type = IResourceView::Type::ShaderResource;
- viewDesc.format = Format::Unknown;
- SLANG_RETURN_ON_FAIL(device->createBufferView(inputBuffer1, viewDesc, &buffer1View));
-}
-// Bind the resource view to shader.
-rootObject->setResource(ShaderOffset{0,1,0}, buffer1View);
-
-// Create a resource view for resultBuffer.
-IBufferView* resultView;
-{
- IResourceView::Desc viewDesc = {};
- viewDesc.type = IResourceView::Type::UnorderedAccess;
- viewDesc.format = Format::Unknown;
- SLANG_RETURN_ON_FAIL(device->createBufferView(resultBuffer, viewDesc, &resultView));
-}
-rootObject->setResource(ShaderOffset{0,2,0}, resultView);
-```
-
-> #### Note
-> Since `rootObject` is a transient object returned by the command encoder, it is automatically released
-> with the command encoder. Calling `release` on `rootObject` is OK but not needed.
-
-After binding all shader parameters, we can now dispatch the kernel:
-
-```cpp
-encoder->dispatchCompute(1, 1, 1);
-```
-
-> #### Note
-> Command encoders are transient objects managed by a command buffer, it is automatically released
-> with the command buffer. Calling `release` on `rootObject` is OK but not needed.
-
-When we are done recording commands, we need to close the command encoder and the command buffer.
-
-```cpp
-encoder->endEncoding();
-commandBuffer->close();
-```
-
-Now we are ready to submit the command buffer to the command queue, and wait for the GPU execution to finish.
-```cpp
-gQueue->executeCommandBuffer(commandBuffer);
-gQueue->wait();
-```
-
-Cleaning Up
-----------------
-
-At the end of our example, we need to make sure all created objects are released by calling the `release` method:
-
-```cpp
-commandBuffer->release();
-gQueue->release();
-gTransientResourceHeap->release();
-inputBuffer0->release();
-buffer0View->release();
-...
-gDevice->release();
-```
-
-The order of calls to `release` does not matter, as long as all objects are released from the user.
diff --git a/docs/gfx-user-guide/index.md b/docs/gfx-user-guide/index.md
deleted file mode 100644
index 4671a1a30..000000000
--- a/docs/gfx-user-guide/index.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-layout: user-guide
----
-
-Slang Graphics Layer
-=============
-
-The Slang Graphics Layer is an abstraction library of graphics APIs to support cross-platform applications that utilize GPU graphics/compute capabilities. The Slang Graphics Layer tightly integrates the Slang shading language to provide the most complete cross-platform GPU application development experience. The Slang language and compilation API is designed to work best when the application assumes several best practices in terms of shader specialization and parameter binding. The Slang Graphics Layer is following exactly the same best practices supported by Slang's compilation model. Outside of shader-related areas, the graphics layer's interface is designed to closely follow the modern graphics API models in Direct3D 12, Vulkan and Metal, such that the layer is only purposed to abstracting the differences between these underlying APIs instead of providing a higher level abstract that simplifies the interface. This design philosophy allows users to benefit from the ideas in the Slang shading language without giving up precise control on other aspects of the graphics API.
-
-The current support status of operating system and graphics APIs is shown in the following matrix.
-
-| | Windows | Linux |
-| :------------ | :----------------: | :----------------: |
-| Direct3D 12 | Yes | No |
-| Direct3D 11 | Yes | No |
-| Vulkan | Yes | Yes |
-| OpenGL | Yes | No |
-| CPU emulation | Yes (Compute Only) | Yes (Compute Only) |
-| CUDA | Yes (Compute Only) | Yes (Compute Only) |
-
-
-> #### Note
-> The graphics layer is still under active development and we intend to add more platforms and APIs in the future.
-
-In this documentation, we will walk through various parts of the library and demonstrate how it can be used in your application. \ No newline at end of file
diff --git a/docs/gfx-user-guide/nav.html b/docs/gfx-user-guide/nav.html
deleted file mode 100644
index 97757326e..000000000
--- a/docs/gfx-user-guide/nav.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<nav>
- <li><a href="../../">Docs</a></li>
- <li><a href="index.html">Slang Graphics Layer</a></li>
-
-</nav> \ No newline at end of file
diff --git a/docs/gfx-user-guide/toc.html b/docs/gfx-user-guide/toc.html
deleted file mode 100644
index be64cca17..000000000
--- a/docs/gfx-user-guide/toc.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<ul class="toc_root_list"><li data-link="index"><span>Slang Graphics Layer</span>
-<ul class="toc_list">
-<li data-link="01-getting-started"><span>Getting Started</span>
-<ul class="toc_list">
-<li data-link="01-getting-started#installation"><span>Installation</span></li>
-<li data-link="01-getting-started#creating-a-gpu-device"><span>Creating a GPU Device</span></li>
-<li data-link="01-getting-started#enabling-the-debug-layer"><span>Enabling the Debug Layer</span></li>
-<li data-link="01-getting-started#creating-a-command-queue"><span>Creating a Command Queue</span></li>
-<li data-link="01-getting-started#allocating-a-command-buffer"><span>Allocating a Command Buffer</span></li>
-<li data-link="01-getting-started#creating-buffer-resource"><span>Creating Buffer Resource</span></li>
-<li data-link="01-getting-started#creating-a-pipeline-state"><span>Creating a Pipeline State</span></li>
-<li data-link="01-getting-started#recording-commands-to-run-a-compute-shader"><span>Recording Commands</span></li>
-<li data-link="01-getting-started#cleaning-up"><span>Cleaning Up</span></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul> \ No newline at end of file
diff --git a/docs/gfx-user-guide/unsupported-formats.md b/docs/gfx-user-guide/unsupported-formats.md
deleted file mode 100644
index f93567a95..000000000
--- a/docs/gfx-user-guide/unsupported-formats.md
+++ /dev/null
@@ -1,266 +0,0 @@
-Unsupported Formats
-======================
-
-GFX currently does not support the following listed D3D and Vulkan formats.
-With the exception of `D24_UNORM_S8_UINT`, these formats have been omitted as
-their counterpart API does not have a corresponding format. `D24_UNORM_S8_UINT`
-has been omitted as it is only supported by Nvidia.
-
-- `DXGI_FORMAT_R32G8X24_TYPELESS`
-- `DXGI_FORMAT_D32_FLOAT_S8X24_UINT`
-- `DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS`
-- `DXGI_FORMAT_X32_TYPELESS_G8X24_UINT`
-- `DXGI_FORMAT_R24G8_TYPELESS`
-- `DXGI_FORMAT_D24_UNORM_S8_UINT`
-- `DXGI_FORMAT_R24_UNORM_X8_TYPELESS`
-- `DXGI_FORMAT_X24_TYPELESS_G8_UINT`
-- `DXGI_FORMAT_A8_UNORM`
-- `DXGI_FORMAT_R1_UNORM`
-- `DXGI_FORMAT_R8G8_B8G8_UNORM`
-- `DXGI_FORMAT_G8R8_G8B8_UNORM`
-- `DXGI_FORMAT_BC1_TYPELESS`
-- `DXGI_FORMAT_BC2_TYPELESS`
-- `DXGI_FORMAT_BC3_TYPELESS`
-- `DXGI_FORMAT_BC4_TYPELESS`
-- `DXGI_FORMAT_BC5_TYPELESS`
-- `DXGI_FORMAT_B8G8R8X8_UNORM`
-- `DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM`
-- `DXGI_FORMAT_B8G8R8X8_TYPELESS`
-- `DXGI_FORMAT_B8G8R8X8_UNORM_SRGB`
-- `DXGI_FORMAT_BC6H_TYPELESS`
-- `DXGI_FORMAT_BC7_TYPELESS`
-- `DXGI_FORMAT_AYUV`
-- `DXGI_FORMAT_Y410`
-- `DXGI_FORMAT_Y416`
-- `DXGI_FORMAT_NV12`
-- `DXGI_FORMAT_P010`
-- `DXGI_FORMAT_P016`
-- `DXGI_FORMAT_420_OPAQUE`
-- `DXGI_FORMAT_YUY2`
-- `DXGI_FORMAT_Y210`
-- `DXGI_FORMAT_Y216`
-- `DXGI_FORMAT_NV11`
-- `DXGI_FORMAT_AI44`
-- `DXGI_FORMAT_IA44`
-- `DXGI_FORMAT_P8`
-- `DXGI_FORMAT_A8P8`
-- `DXGI_FORMAT_P208`
-- `DXGI_FORMAT_V208`
-- `DXGI_FORMAT_V408`
-- `DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE`
-- `DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE`
-- `VK_FORMAT_R4G4_UNORM_PACK8`
-- `VK_FORMAT_R4G4B4A4_UNORM_PACK16`
-- `VK_FORMAT_B4G4R4A4_UNORM_PACK16`
-- `VK_FORMAT_B5G6R5_UNORM_PACK16`
-- `VK_FORMAT_R5G5B5A1_UNORM_PACK16`
-- `VK_FORMAT_B5G5R5A1_UNORM_PACK16`
-- `VK_FORMAT_R8_USCALED`
-- `VK_FORMAT_R8_SSCALED`
-- `VK_FORMAT_R8_SRGB`
-- `VK_FORMAT_R8G8_USCALED`
-- `VK_FORMAT_R8G8_SSCALED`
-- `VK_FORMAT_R8G8_SRGB`
-- `VK_FORMAT_R8G8B8_UNORM`
-- `VK_FORMAT_R8G8B8_SNORM`
-- `VK_FORMAT_R8G8B8_USCALED`
-- `VK_FORMAT_R8G8B8_SSCALED`
-- `VK_FORMAT_R8G8B8_UINT`
-- `VK_FORMAT_R8G8B8_SINT`
-- `VK_FORMAT_R8G8B8_SRGB`
-- `VK_FORMAT_B8G8R8_UNORM`
-- `VK_FORMAT_B8G8R8_SNORM`
-- `VK_FORMAT_B8G8R8_USCALED`
-- `VK_FORMAT_B8G8R8_SSCALED`
-- `VK_FORMAT_B8G8R8_UINT`
-- `VK_FORMAT_B8G8R8_SINT`
-- `VK_FORMAT_B8G8R8_SRGB`
-- `VK_FORMAT_R8G8B8A8_USCALED`
-- `VK_FORMAT_R8G8B8A8_SSCALED`
-- `VK_FORMAT_B8G8R8A8_SNORM`
-- `VK_FORMAT_B8G8R8A8_USCALED`
-- `VK_FORMAT_B8G8R8A8_SSCALED`
-- `VK_FORMAT_B8G8R8A8_UINT`
-- `VK_FORMAT_B8G8R8A8_SINT`
-- `VK_FORMAT_A8B8G8R8_UNORM_PACK32`
-- `VK_FORMAT_A8B8G8R8_SNORM_PACK32`
-- `VK_FORMAT_A8B8G8R8_USCALED_PACK32`
-- `VK_FORMAT_A8B8G8R8_SSCALED_PACK32`
-- `VK_FORMAT_A8B8G8R8_UINT_PACK32`
-- `VK_FORMAT_A8B8G8R8_SINT_PACK32`
-- `VK_FORMAT_A8B8G8R8_SRGB_PACK32`
-- `VK_FORMAT_A2R10G10B10_UNORM_PACK32`
-- `VK_FORMAT_A2R10G10B10_SNORM_PACK32`
-- `VK_FORMAT_A2R10G10B10_USCALED_PACK32`
-- `VK_FORMAT_A2R10G10B10_SSCALED_PACK32`
-- `VK_FORMAT_A2R10G10B10_UINT_PACK32`
-- `VK_FORMAT_A2R10G10B10_SINT_PACK32`
-- `VK_FORMAT_A2B10G10R10_SNORM_PACK32`
-- `VK_FORMAT_A2B10G10R10_USCALED_PACK32`
-- `VK_FORMAT_A2B10G10R10_SSCALED_PACK32`
-- `VK_FORMAT_A2B10G10R10_SINT_PACK32`
-- `VK_FORMAT_R16_USCALED`
-- `VK_FORMAT_R16_SSCALED`
-- `VK_FORMAT_R16G16_USCALED`
-- `VK_FORMAT_R16G16_SSCALED`
-- `VK_FORMAT_R16G16B16_UNORM`
-- `VK_FORMAT_R16G16B16_SNORM`
-- `VK_FORMAT_R16G16B16_USCALED`
-- `VK_FORMAT_R16G16B16_SSCALED`
-- `VK_FORMAT_R16G16B16_UINT`
-- `VK_FORMAT_R16G16B16_SINT`
-- `VK_FORMAT_R16G16B16_SFLOAT`
-- `VK_FORMAT_R16G16B16A16_USCALED`
-- `VK_FORMAT_R16G16B16A16_SSCALED`
-- `VK_FORMAT_R64_UINT`
-- `VK_FORMAT_R64_SINT`
-- `VK_FORMAT_R64_SFLOAT`
-- `VK_FORMAT_R64G64_UINT`
-- `VK_FORMAT_R64G64_SINT`
-- `VK_FORMAT_R64G64_SFLOAT`
-- `VK_FORMAT_R64G64B64_UINT`
-- `VK_FORMAT_R64G64B64_SINT`
-- `VK_FORMAT_R64G64B64_SFLOAT`
-- `VK_FORMAT_R64G64B64A64_UINT`
-- `VK_FORMAT_R64G64B64A64_SINT`
-- `VK_FORMAT_R64G64B64A64_SFLOAT`
-- `VK_FORMAT_X8_D24_UNORM_PACK32`
-- `VK_FORMAT_S8_UINT`
-- `VK_FORMAT_D16_UNORM_S8_UINT`
-- `VK_FORMAT_D24_UNORM_S8_UINT`
-- `VK_FORMAT_D32_SFLOAT_S8_UINT`
-- `VK_FORMAT_BC1_RGB_UNORM_BLOCK`
-- `VK_FORMAT_BC1_RGB_SRGB_BLOCK`
-- `VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK`
-- `VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK`
-- `VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK`
-- `VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK`
-- `VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK`
-- `VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK`
-- `VK_FORMAT_EAC_R11_UNORM_BLOCK`
-- `VK_FORMAT_EAC_R11_SNORM_BLOCK`
-- `VK_FORMAT_EAC_R11G11_UNORM_BLOCK`
-- `VK_FORMAT_EAC_R11G11_SNORM_BLOCK`
-- `VK_FORMAT_ASTC_4x4_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_4x4_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_5x4_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_5x4_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_5x5_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_5x5_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_6x5_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_6x5_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_6x6_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_6x6_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_8x5_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_8x5_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_8x6_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_8x6_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_8x8_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_8x8_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_10x5_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_10x5_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_10x6_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_10x6_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_10x8_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_10x8_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_10x10_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_10x10_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_12x10_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_12x10_SRGB_BLOCK`
-- `VK_FORMAT_ASTC_12x12_UNORM_BLOCK`
-- `VK_FORMAT_ASTC_12x12_SRGB_BLOCK`
-- `VK_FORMAT_G8B8G8R8_422_UNORM`
-- `VK_FORMAT_B8G8R8G8_422_UNORM`
-- `VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM`
-- `VK_FORMAT_G8_B8R8_2PLANE_420_UNORM`
-- `VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM`
-- `VK_FORMAT_G8_B8R8_2PLANE_422_UNORM`
-- `VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM`
-- `VK_FORMAT_R10X6_UNORM_PACK16`
-- `VK_FORMAT_R10X6G10X6_UNORM_2PACK16`
-- `VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16`
-- `VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16`
-- `VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16`
-- `VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16`
-- `VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16`
-- `VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16`
-- `VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16`
-- `VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16`
-- `VK_FORMAT_R12X4_UNORM_PACK16`
-- `VK_FORMAT_R12X4G12X4_UNORM_2PACK16`
-- `VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16`
-- `VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16`
-- `VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16`
-- `VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16`
-- `VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16`
-- `VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16`
-- `VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16`
-- `VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16`
-- `VK_FORMAT_G16B16G16R16_422_UNORM`
-- `VK_FORMAT_B16G16R16G16_422_UNORM`
-- `VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM`
-- `VK_FORMAT_G16_B16R16_2PLANE_420_UNORM`
-- `VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM`
-- `VK_FORMAT_G16_B16R16_2PLANE_422_UNORM`
-- `VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM`
-- `VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG`
-- `VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG`
-- `VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG`
-- `VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG`
-- `VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG`
-- `VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG`
-- `VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG`
-- `VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG`
-- `VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT`
-- `VK_FORMAT_G8_B8R8_2PLANE_444_UNORM_EXT`
-- `VK_FORMAT_G10X6_B10X6R10X6_2PLANE_444_UNORM_3PACK16_EXT`
-- `VK_FORMAT_G12X4_B12X4R12X4_2PLANE_444_UNORM_3PACK16_EXT`
-- `VK_FORMAT_G16_B16R16_2PLANE_444_UNORM_EXT`
-- `VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT`
-- `VK_FORMAT_G8B8G8R8_422_UNORM_KHR`
-- `VK_FORMAT_B8G8R8G8_422_UNORM_KHR`
-- `VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR`
-- `VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR`
-- `VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR`
-- `VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR`
-- `VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR`
-- `VK_FORMAT_R10X6_UNORM_PACK16_KHR`
-- `VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR`
-- `VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR`
-- `VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR`
-- `VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR`
-- `VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR`
-- `VK_FORMAT_R12X4_UNORM_PACK16_KHR`
-- `VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR`
-- `VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR`
-- `VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR`
-- `VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR`
-- `VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR`
-- `VK_FORMAT_G16B16G16R16_422_UNORM_KHR`
-- `VK_FORMAT_B16G16R16G16_422_UNORM_KHR`
-- `VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR`
-- `VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR`
-- `VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR`
-- `VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR`
-- `VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_K`