SDL: Switched GPU renderer shaders to shadercross and HLSL

From af0420d898c558a7bec7cd89cb42d9f5df1eb8da Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 10 Mar 2025 20:59:03 -0700
Subject: [PATCH] Switched GPU renderer shaders to shadercross and HLSL

---
 src/render/gpu/SDL_shaders_gpu.c              |  28 +-
 src/render/gpu/shaders/build-shaders.sh       | 104 +---
 src/render/gpu/shaders/color.frag             |   9 -
 src/render/gpu/shaders/color.frag.dxil.h      | 238 ++++++++
 src/render/gpu/shaders/color.frag.hlsl        |  13 +
 src/render/gpu/shaders/color.frag.metal.h     |  28 -
 src/render/gpu/shaders/color.frag.msl.h       |  32 +
 src/render/gpu/shaders/color.frag.sm50.dxbc.h |  85 ---
 src/render/gpu/shaders/color.frag.sm60.dxil.h | 340 -----------
 src/render/gpu/shaders/color.frag.spv.h       |  57 +-
 src/render/gpu/shaders/dxbc50.h               |   6 -
 src/render/gpu/shaders/dxil.h                 |   6 +
 src/render/gpu/shaders/dxil60.h               |   6 -
 src/render/gpu/shaders/linepoint.vert         |  17 -
 src/render/gpu/shaders/linepoint.vert.dxil.h  | 326 ++++++++++
 src/render/gpu/shaders/linepoint.vert.hlsl    |  24 +
 src/render/gpu/shaders/linepoint.vert.metal.h |  51 --
 src/render/gpu/shaders/linepoint.vert.msl.h   |  57 ++
 .../gpu/shaders/linepoint.vert.sm50.dxbc.h    | 172 ------
 .../gpu/shaders/linepoint.vert.sm60.dxil.h    | 496 ----------------
 src/render/gpu/shaders/linepoint.vert.spv.h   | 177 +++---
 src/render/gpu/shaders/metal.h                |   6 -
 src/render/gpu/shaders/msl.h                  |   6 +
 src/render/gpu/shaders/texture_rgb.frag       |  12 -
 .../gpu/shaders/texture_rgb.frag.dxil.h       | 325 ++++++++++
 src/render/gpu/shaders/texture_rgb.frag.hlsl  |  17 +
 .../gpu/shaders/texture_rgb.frag.metal.h      |  41 --
 src/render/gpu/shaders/texture_rgb.frag.msl.h |  48 ++
 .../gpu/shaders/texture_rgb.frag.sm50.dxbc.h  | 123 ----
 .../gpu/shaders/texture_rgb.frag.sm60.dxil.h  | 465 ---------------
 src/render/gpu/shaders/texture_rgb.frag.spv.h | 132 +++--
 src/render/gpu/shaders/texture_rgba.frag      |  12 -
 .../gpu/shaders/texture_rgba.frag.dxil.h      | 325 ++++++++++
 src/render/gpu/shaders/texture_rgba.frag.hlsl |  17 +
 .../gpu/shaders/texture_rgba.frag.metal.h     |  40 --
 .../gpu/shaders/texture_rgba.frag.msl.h       |  47 ++
 .../gpu/shaders/texture_rgba.frag.sm50.dxbc.h | 120 ----
 .../gpu/shaders/texture_rgba.frag.sm60.dxil.h | 467 ---------------
 .../gpu/shaders/texture_rgba.frag.spv.h       | 116 ++--
 src/render/gpu/shaders/tri_color.vert         |  17 -
 src/render/gpu/shaders/tri_color.vert.dxil.h  | 338 +++++++++++
 src/render/gpu/shaders/tri_color.vert.hlsl    |  22 +
 src/render/gpu/shaders/tri_color.vert.metal.h |  48 --
 src/render/gpu/shaders/tri_color.vert.msl.h   |  56 ++
 .../gpu/shaders/tri_color.vert.sm50.dxbc.h    | 178 ------
 .../gpu/shaders/tri_color.vert.sm60.dxil.h    | 515 ----------------
 src/render/gpu/shaders/tri_color.vert.spv.h   | 168 +++---
 src/render/gpu/shaders/tri_texture.vert       |  20 -
 .../gpu/shaders/tri_texture.vert.dxil.h       | 363 ++++++++++++
 src/render/gpu/shaders/tri_texture.vert.hlsl  |  26 +
 .../gpu/shaders/tri_texture.vert.metal.h      |  56 --
 src/render/gpu/shaders/tri_texture.vert.msl.h |  70 +++
 .../gpu/shaders/tri_texture.vert.sm50.dxbc.h  | 195 ------
 .../gpu/shaders/tri_texture.vert.sm60.dxil.h  | 558 ------------------
 src/render/gpu/shaders/tri_texture.vert.spv.h | 208 +++----
 55 files changed, 2840 insertions(+), 4589 deletions(-)
 delete mode 100644 src/render/gpu/shaders/color.frag
 create mode 100644 src/render/gpu/shaders/color.frag.dxil.h
 create mode 100644 src/render/gpu/shaders/color.frag.hlsl
 delete mode 100644 src/render/gpu/shaders/color.frag.metal.h
 create mode 100644 src/render/gpu/shaders/color.frag.msl.h
 delete mode 100644 src/render/gpu/shaders/color.frag.sm50.dxbc.h
 delete mode 100644 src/render/gpu/shaders/color.frag.sm60.dxil.h
 delete mode 100644 src/render/gpu/shaders/dxbc50.h
 create mode 100644 src/render/gpu/shaders/dxil.h
 delete mode 100644 src/render/gpu/shaders/dxil60.h
 delete mode 100644 src/render/gpu/shaders/linepoint.vert
 create mode 100644 src/render/gpu/shaders/linepoint.vert.dxil.h
 create mode 100644 src/render/gpu/shaders/linepoint.vert.hlsl
 delete mode 100644 src/render/gpu/shaders/linepoint.vert.metal.h
 create mode 100644 src/render/gpu/shaders/linepoint.vert.msl.h
 delete mode 100644 src/render/gpu/shaders/linepoint.vert.sm50.dxbc.h
 delete mode 100644 src/render/gpu/shaders/linepoint.vert.sm60.dxil.h
 delete mode 100644 src/render/gpu/shaders/metal.h
 create mode 100644 src/render/gpu/shaders/msl.h
 delete mode 100644 src/render/gpu/shaders/texture_rgb.frag
 create mode 100644 src/render/gpu/shaders/texture_rgb.frag.dxil.h
 create mode 100644 src/render/gpu/shaders/texture_rgb.frag.hlsl
 delete mode 100644 src/render/gpu/shaders/texture_rgb.frag.metal.h
 create mode 100644 src/render/gpu/shaders/texture_rgb.frag.msl.h
 delete mode 100644 src/render/gpu/shaders/texture_rgb.frag.sm50.dxbc.h
 delete mode 100644 src/render/gpu/shaders/texture_rgb.frag.sm60.dxil.h
 delete mode 100644 src/render/gpu/shaders/texture_rgba.frag
 create mode 100644 src/render/gpu/shaders/texture_rgba.frag.dxil.h
 create mode 100644 src/render/gpu/shaders/texture_rgba.frag.hlsl
 delete mode 100644 src/render/gpu/shaders/texture_rgba.frag.metal.h
 create mode 100644 src/render/gpu/shaders/texture_rgba.frag.msl.h
 delete mode 100644 src/render/gpu/shaders/texture_rgba.frag.sm50.dxbc.h
 delete mode 100644 src/render/gpu/shaders/texture_rgba.frag.sm60.dxil.h
 delete mode 100644 src/render/gpu/shaders/tri_color.vert
 create mode 100644 src/render/gpu/shaders/tri_color.vert.dxil.h
 create mode 100644 src/render/gpu/shaders/tri_color.vert.hlsl
 delete mode 100644 src/render/gpu/shaders/tri_color.vert.metal.h
 create mode 100644 src/render/gpu/shaders/tri_color.vert.msl.h
 delete mode 100644 src/render/gpu/shaders/tri_color.vert.sm50.dxbc.h
 delete mode 100644 src/render/gpu/shaders/tri_color.vert.sm60.dxil.h
 delete mode 100644 src/render/gpu/shaders/tri_texture.vert
 create mode 100644 src/render/gpu/shaders/tri_texture.vert.dxil.h
 create mode 100644 src/render/gpu/shaders/tri_texture.vert.hlsl
 delete mode 100644 src/render/gpu/shaders/tri_texture.vert.metal.h
 create mode 100644 src/render/gpu/shaders/tri_texture.vert.msl.h
 delete mode 100644 src/render/gpu/shaders/tri_texture.vert.sm50.dxbc.h
 delete mode 100644 src/render/gpu/shaders/tri_texture.vert.sm60.dxil.h

diff --git a/src/render/gpu/SDL_shaders_gpu.c b/src/render/gpu/SDL_shaders_gpu.c
index a56fb0ca1bc4c..c7fd8d4d110e2 100644
--- a/src/render/gpu/SDL_shaders_gpu.c
+++ b/src/render/gpu/SDL_shaders_gpu.c
@@ -45,7 +45,7 @@ typedef struct GPU_ShaderModuleSource
 #ifdef SDL_GPU_D3D12
 #define IF_D3D12(...)       __VA_ARGS__
 #define HAVE_DXIL60_SHADERS 1
-#include "shaders/dxil60.h"
+#include "shaders/dxil.h"
 #else
 #define IF_D3D12(...)
 #define HAVE_DXIL60_SHADERS 0
@@ -54,7 +54,7 @@ typedef struct GPU_ShaderModuleSource
 #ifdef SDL_GPU_METAL
 #define IF_METAL(...)      __VA_ARGS__
 #define HAVE_METAL_SHADERS 1
-#include "shaders/metal.h"
+#include "shaders/msl.h"
 #else
 #define IF_METAL(...)
 #define HAVE_METAL_SHADERS 0
@@ -84,22 +84,22 @@ static const GPU_ShaderSources vert_shader_sources[NUM_VERT_SHADERS] = {
         .num_samplers = 0,
         .num_uniform_buffers = 1,
         SHADER_SPIRV(linepoint_vert_spv)
-        SHADER_DXIL60(linepoint_vert_sm60_dxil)
-        SHADER_METAL(linepoint_vert_metal)
+        SHADER_DXIL60(linepoint_vert_dxil)
+        SHADER_METAL(linepoint_vert_msl)
     },
     [VERT_SHADER_TRI_COLOR] = {
         .num_samplers = 0,
         .num_uniform_buffers = 1,
         SHADER_SPIRV(tri_color_vert_spv)
-        SHADER_DXIL60(tri_color_vert_sm60_dxil)
-        SHADER_METAL(tri_color_vert_metal)
+        SHADER_DXIL60(tri_color_vert_dxil)
+        SHADER_METAL(tri_color_vert_msl)
     },
     [VERT_SHADER_TRI_TEXTURE] = {
         .num_samplers = 0,
         .num_uniform_buffers = 1,
         SHADER_SPIRV(tri_texture_vert_spv)
-        SHADER_DXIL60(tri_texture_vert_sm60_dxil)
-        SHADER_METAL(tri_texture_vert_metal)
+        SHADER_DXIL60(tri_texture_vert_dxil)
+        SHADER_METAL(tri_texture_vert_msl)
     },
 };
 
@@ -108,22 +108,22 @@ static const GPU_ShaderSources frag_shader_sources[NUM_FRAG_SHADERS] = {
         .num_samplers = 0,
         .num_uniform_buffers = 0,
         SHADER_SPIRV(color_frag_spv)
-        SHADER_DXIL60(color_frag_sm60_dxil)
-        SHADER_METAL(color_frag_metal)
+        SHADER_DXIL60(color_frag_dxil)
+        SHADER_METAL(color_frag_msl)
     },
     [FRAG_SHADER_TEXTURE_RGB] = {
         .num_samplers = 1,
         .num_uniform_buffers = 0,
         SHADER_SPIRV(texture_rgb_frag_spv)
-        SHADER_DXIL60(texture_rgb_frag_sm60_dxil)
-        SHADER_METAL(texture_rgb_frag_metal)
+        SHADER_DXIL60(texture_rgb_frag_dxil)
+        SHADER_METAL(texture_rgb_frag_msl)
     },
     [FRAG_SHADER_TEXTURE_RGBA] = {
         .num_samplers = 1,
         .num_uniform_buffers = 0,
         SHADER_SPIRV(texture_rgba_frag_spv)
-        SHADER_DXIL60(texture_rgba_frag_sm60_dxil)
-        SHADER_METAL(texture_rgba_frag_metal)
+        SHADER_DXIL60(texture_rgba_frag_dxil)
+        SHADER_METAL(texture_rgba_frag_msl)
     },
 };
 // clang-format on
diff --git a/src/render/gpu/shaders/build-shaders.sh b/src/render/gpu/shaders/build-shaders.sh
index 9b019e59ecd05..1b725efba3e38 100755
--- a/src/render/gpu/shaders/build-shaders.sh
+++ b/src/render/gpu/shaders/build-shaders.sh
@@ -2,30 +2,6 @@
 
 set -e
 
-# NOTE: fxc is tested on Linux with https://github.com/mozilla/fxc2
-
-which fxc &>/dev/null && HAVE_FXC=1 || HAVE_FXC=0
-which dxc &>/dev/null && HAVE_DXC=1 || HAVE_DXC=0
-which spirv-cross &>/dev/null && HAVE_SPIRV_CROSS=1 || HAVE_SPIRV_CROSS=0
-
-[ "$HAVE_FXC" != 0 ] || echo "fxc not in PATH; D3D11 shaders will not be rebuilt"
-[ "$HAVE_DXC" != 0 ] || echo "dxc not in PATH; D3D12 shaders will not be rebuilt"
-[ "$HAVE_SPIRV_CROSS" != 0 ] || echo "spirv-cross not in PATH; D3D11, D3D12, Metal shaders will not be rebuilt"
-
-USE_FXC=${USE_FXC:-$HAVE_FXC}
-USE_DXC=${USE_DXC:-$HAVE_DXC}
-USE_SPIRV_CROSS=${USE_SPIRV_CROSS:-$HAVE_SPIRV_CROSS}
-
-spirv_bundle="spir-v.h"
-dxbc50_bundle="dxbc50.h"
-dxil60_bundle="dxil60.h"
-metal_bundle="metal.h"
-
-rm -f "$spirv_bundle"
-[ "$USE_SPIRV_CROSS" != 0 ] && rm -f "$metal_bundle"
-[ "$USE_SPIRV_CROSS" != 0 ] && [ "$USE_FXC" != 0 ] && rm -f "$dxbc50_bundle"
-[ "$USE_SPIRV_CROSS" != 0 ] && [ "$USE_DXC" != 0 ] && rm -f "$dxil60_bundle"
-
 make-header() {
     xxd -i "$1" | sed \
         -e 's/^unsigned /const unsigned /g' \
@@ -33,74 +9,16 @@ make-header() {
         > "$1.h"
 }
 
-compile-hlsl-dxbc() {
-    local src="$1"
-    local profile="$2"
-    local output_basename="$3"
-    local var_name="$(echo "$output_basename" | sed -e 's/\./_/g')"
-
-    fxc "$src" /E main /T $2 /Fh "$output_basename.tmp.h" || exit $?
-    sed \
-        -e "s/g_main/$var_name/;s/\r//g" \
-        -e 's,^const,static const,' \
-        -e 's,const unsigned,const signed,' \
-        < "$output_basename.tmp.h" \
-        > "$output_basename.h"
-    rm -f "$output_basename.tmp.h"
-}
-
-compile-hlsl-dxil() {
-    local src="$1"
-    local profile="$2"
-    local output_basename="$3"
-    local var_name="$(echo "$output_basename" | sed -e 's/\./_/g')"
-
-    dxc "$src" -E main -T $2 -Fh "$output_basename.tmp.h" -O3 || exit $?
-    sed \
-        -e "s/g_main/$var_name/;s/\r//g" \
-        -e 's,^const,static const,' \
-        < "$output_basename.tmp.h" \
-        > "$output_basename.h"
-    rm -f "$output_basename.tmp.h"
-}
-
-for i in *.vert *.frag; do
-    spv="$i.spv"
-    metal="$i.metal"
-    hlsl50="$i.sm50.hlsl"
-    dxbc50="$i.sm50.dxbc"
-    hlsl60="$i.sm60.hlsl"
-    dxil60="$i.sm60.dxil"
-
-    glslangValidator -g0 -Os "$i" -V -o "$spv" --quiet
-
-    make-header "$spv"
-    echo "#include \"$spv.h\"" >> "$spirv_bundle"
-
-    if [ "$USE_SPIRV_CROSS" = "0" ]; then
-        continue
-    fi
-
-    spirv-cross "$spv" --hlsl --shader-model 50 --hlsl-enable-compat --output "$hlsl50"
-    spirv-cross "$spv" --hlsl --shader-model 60 --hlsl-enable-compat --output "$hlsl60"
-
-    if [ "${i##*.}" == "frag" ]; then
-        hlsl_stage="ps"
-    else
-        hlsl_stage="vs"
+# Requires shadercross CLI installed from SDL_shadercross
+for filename in *.hlsl; do
+    if [ -f "$filename" ]; then
+        shadercross "$filename" -o "${filename/.hlsl/.spv}"
+        make-header "${filename/.hlsl/.spv}"
+        shadercross "$filename" -o "${filename/.hlsl/.msl}"
+        make-header "${filename/.hlsl/.msl}"
+        shadercross "$filename" -o "${filename/.hlsl/.dxil}"
+        make-header "${filename/.hlsl/.dxil}"
     fi
-
-    if [ "$USE_FXC" != "0" ]; then
-        compile-hlsl-dxbc "$hlsl50" ${hlsl_stage}_5_0 "$dxbc50"
-        echo "#include \"$dxbc50.h\"" >> "$dxbc50_bundle"
-    fi
-
-    if [ "$USE_DXC" != "0" ]; then
-        compile-hlsl-dxil "$hlsl60" ${hlsl_stage}_6_0 "$dxil60"
-        echo "#include \"$dxil60.h\"" >> "$dxil60_bundle"
-    fi
-
-    spirv-cross "$spv" --msl --output "$metal"
-    make-header "$metal"
-    echo "#include \"$metal.h\"" >> "$metal_bundle"
 done
+
+rm -f *.spv *.msl *.dxil
diff --git a/src/render/gpu/shaders/color.frag b/src/render/gpu/shaders/color.frag
deleted file mode 100644
index 8ce1e6ba07fa3..0000000000000
--- a/src/render/gpu/shaders/color.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-#version 450
-
-layout(location = 0) in vec4 v_color;
-
-layout(location = 0) out vec4 o_color;
-
-void main() {
-    o_color = v_color;
-}
diff --git a/src/render/gpu/shaders/color.frag.dxil.h b/src/render/gpu/shaders/color.frag.dxil.h
new file mode 100644
index 0000000000000..005fbfaf0cdd8
--- /dev/null
+++ b/src/render/gpu/shaders/color.frag.dxil.h
@@ -0,0 +1,238 @@
+static const unsigned char color_frag_dxil[] = {
+  0x44, 0x58, 0x42, 0x43, 0x2e, 0x2e, 0xa9, 0x96, 0x45, 0xe1, 0xc0, 0xaa,
+  0xe2, 0x19, 0x19, 0xf0, 0x13, 0x89, 0x7b, 0xcc, 0x01, 0x00, 0x00, 0x00,
+  0x00, 0x0b, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00,
+  0x4c, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0xc4, 0x00, 0x00, 0x00,
+  0x58, 0x01, 0x00, 0x00, 0x08, 0x06, 0x00, 0x00, 0x24, 0x06, 0x00, 0x00,
+  0x53, 0x46, 0x49, 0x30, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x49, 0x53, 0x47, 0x31, 0x34, 0x00, 0x00, 0x00,
+  0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x54, 0x45, 0x58, 0x43, 0x4f, 0x4f, 0x52, 0x44,
+  0x00, 0x00, 0x00, 0x00, 0x4f, 0x53, 0x47, 0x31, 0x34, 0x00, 0x00, 0x00,
+  0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
+  0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x53, 0x56, 0x5f, 0x54, 0x61, 0x72, 0x67, 0x65,
+  0x74, 0x00, 0x00, 0x00, 0x50, 0x53, 0x56, 0x30, 0x8c, 0x00, 0x00, 0x00,
+  0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x01,
+  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x10, 0x00, 0x00, 0x00, 0x00, 0x54, 0x45, 0x58, 0x43, 0x4f, 0x4f, 0x52,
+  0x44, 0x00, 0x6d, 0x61, 0x69, 0x6e, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x44, 0x00, 0x03, 0x02, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x44, 0x10,
+  0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+  0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x53, 0x54, 0x41, 0x54,
+  0xa8, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x2a, 0x01, 0x00, 0x00,
+  0x44, 0x58, 0x49, 0x4c, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
+  0x90, 0x04, 0x00, 0x00, 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00,
+  0x21, 0x01, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00,
+  0x13, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49,
+  0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19,
+  0x1e, 0x04, 0x8b, 0x62, 0x80, 0x10, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42,
+  0x84, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x4b, 0x0a, 0x32, 0x42, 0x88,
+  0x48, 0x90, 0x14, 0x20, 0x43, 0x46, 0x88, 0xa5, 0x00, 0x19, 0x32, 0x42,
+  0xe4, 0x48, 0x0e, 0x90, 0x11, 0x22, 0xc4, 0x50, 0x41, 0x51, 0x81, 0x8c,
+  0xe1, 0x83, 0xe5, 0x8a, 0x04, 0x21, 0x46, 0x06, 0x51, 0x18, 0x00, 0x00,
+  0x06, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x07,
+  0x40, 0x02, 0xa8, 0x0d, 0x84, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x03, 0x20,
+  0x01, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+  0x13, 0x82, 0x60, 0x42, 0x20, 0x00, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00,
+  0x0f, 0x00, 0x00, 0x00, 0x32, 0x22, 0x08, 0x09, 0x20, 0x64, 0x85, 0x04,
+  0x13, 0x22, 0xa4, 0x84, 0x04, 0x13, 0x22, 0xe3, 0x84, 0xa1, 0x90, 0x14,
+  0x12, 0x4c, 0x88, 0x8c, 0x0b, 0x84, 0x84, 0x4c, 0x10, 0x30, 0x23, 0x00,
+  0x25, 0x00, 0x8a, 0x19, 0x80, 0x39, 0x02, 0x30, 0x98, 0x23, 0x40, 0x8a,
+  0x31, 0x44, 0x54, 0x44, 0x56, 0x0c, 0x20, 0xa2, 0x1a, 0xc2, 0x81, 0x80,
+  0x34, 0x20, 0x00, 0x00, 0x13, 0x14, 0x72, 0xc0, 0x87, 0x74, 0x60, 0x87,
+  0x36, 0x68, 0x87, 0x79, 0x68, 0x03, 0x72, 0xc0, 0x87, 0x0d, 0xaf, 0x50,
+  0x0e, 0x6d, 0xd0, 0x0e, 0x7a, 0x50, 0x0e, 0x6d, 0x00, 0x0f, 0x7a, 0x30,
+  0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0xa0,
+  0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0, 0x07, 0x73, 0x20,
+  0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+  0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90,
+  0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x10,
+  0x07, 0x76, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20,
+  0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0,
+  0x07, 0x76, 0x40, 0x07, 0x6d, 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60,
+  0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x43, 0x9e,
+  0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86,
+  0x3c, 0x06, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x0c, 0x79, 0x10, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x00, 0xc8, 0x02, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x14,
+  0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0xa2,
+  0x12, 0x18, 0x01, 0x28, 0x86, 0x32, 0x28, 0x8f, 0x92, 0x28, 0x04, 0xaa,
+  0x92, 0x18, 0x01, 0x28, 0x82, 0x42, 0x28, 0x10, 0xda, 0xb1, 0x0c, 0x82,
+  0x08, 0x04, 0x02, 0x01, 0x79, 0x18, 0x00, 0x00, 0x57, 0x00, 0x00, 0x00,
+  0x1a, 0x03, 0x4c, 0x90, 0x46, 0x02, 0x13, 0xc4, 0x8e, 0x0c, 0x6f, 0xec,
+  0xed, 0x4d, 0x0c, 0x24, 0xc6, 0x05, 0xc7, 0x45, 0xa6, 0x06, 0x46, 0xc6,
+  0x05, 0x07, 0x04, 0x45, 0x8c, 0xe6, 0x26, 0x26, 0x06, 0x67, 0x26, 0xa7,
+  0x2c, 0x65, 0x43, 0x10, 0x4c, 0x10, 0x88, 0x61, 0x82, 0x40, 0x10, 0x1b,
+  0x84, 0x81, 0xd8, 0x20, 0x10, 0x04, 0x05, 0xb8, 0xb9, 0x09, 0x02, 0x51,
+  0x6c, 0x18, 0x0e, 0x84, 0x98, 0x20, 0x08, 0xc0, 0x06, 0x60, 0xc3, 0x40,
+  0x2c, 0xcb, 0x86, 0x80, 0xd9, 0x30, 0x0c, 0x4a, 0x33, 0x41, 0x58, 0x9e,
+  0x0d, 0xc1, 0x43, 0xa2, 0x2d, 0x2c, 0xcd, 0x8d, 0x08, 0x55, 0x11, 0xd6,
+  0xd0, 0xd3, 0x93, 0x14, 0xd1, 0x04, 0xa1, 0x50, 0x26, 0x08, 0xc5, 0xb2,
+  0x21, 0x20, 0x26, 0x08, 0x05, 0x33, 0x41, 0x28, 0x9a, 0x09, 0x02, 0x61,
+  0x4c, 0x10, 0x88, 0x63, 0x83, 0x80, 0x65, 0x1b, 0x16, 0x42, 0x9a, 0xa8,
+  0xca, 0x1a, 0x2e, 0x82, 0xd2, 0x36, 0x04, 0x1b, 0x93, 0x29, 0xab, 0x2f,
+  0xaa, 0x30, 0xb9, 0xb3, 0x32, 0xba, 0x09, 0x42, 0xe1, 0x6c, 0x58, 0x88,
+  0x6e, 0xf2, 0x2a, 0x6a, 0xb8, 0x08, 0x4a, 0xdb, 0x10, 0x7c, 0x1b, 0x06,
+  0x0e, 0x0c, 0x80, 0x0d, 0x85, 0x12, 0x85, 0x01, 0x00, 0xb0, 0x48, 0x73,
+  0x9b, 0xa3, 0x9b, 0x9b, 0x20, 0x10, 0x08, 0x8d, 0xb9, 0xb4, 0xb3, 0x2f,
+  0x36, 0xb2, 0x09, 0x02, 0x91, 0xd0, 0x98, 0x4b, 0x3b, 0xfb, 0x9a, 0xa3,
+  0xdb, 0x60, 0x8c, 0x01, 0x19, 0x94, 0x81, 0x19, 0x9c, 0x81, 0x19, 0x54,
+  0x61, 0x63, 0xb3, 0x6b, 0x73, 0x49, 0x23, 0x2b, 0x73, 0xa3, 0x9b, 0x12,
+  0x04, 0x55, 0xc8, 0xf0, 0x5c, 0xec, 0xca, 0xe4, 0xe6, 0xd2, 0xde, 0xdc,
+  0xa6, 0x04, 0x44, 0x13, 0x32, 0x3c, 0x17, 0xbb, 0x30, 0x36, 0xbb, 0x32,
+  0xb9, 0x29, 0x41, 0x51, 0x87, 0x0c, 0xcf, 0x65, 0x0e, 0x2d, 0x8c, 0xac,
+  0x4c, 0xae, 0xe9, 0x8d, 0xac, 0x8c, 0x6d, 0x4a, 0x80, 0x54, 0x22, 0xc3,
+  0x73, 0xa1, 0xcb, 0x83, 0x2b, 0x0b, 0x72, 0x73, 0x7b, 0xa3, 0x0b, 0xa3,
+  0x4b, 0x7b, 0x73, 0x9b, 0x9b, 0x12, 0x34, 0x75, 0xc8, 0xf0, 0x5c, 0xec,
+  0xd2, 0xca, 0xee, 0x92, 0xc8, 0xa6, 0xe8, 0xc2, 0xe8, 0xca, 0xa6, 0x04,
+  0x4f, 0x1d, 0x32, 0x3c, 0x97, 0x32, 0x37, 0x3a, 0xb9, 0x3c, 0xa8, 0xb7,
+  0x34, 0x37, 0xba, 0xb9, 0x29, 0x41, 0x18, 0x74, 0x21, 0xc3, 0x73, 0x19,
+  0x7b, 0xab, 0x73, 0xa3, 0x2b, 0x93, 0x9b, 0x9b, 0x12, 0x9c, 0x01, 0x00,
+  0x79, 0x18, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
+  0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3,
+  0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6,
+  0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
+  0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43,
+  0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03,
+  0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48,
+  0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20,
+  0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
+  0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d,
+  0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89,
+  0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
+  0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+  0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90,
+  0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78,
+  0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98,
+  0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
+  0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c,
+  0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c,
+  0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
+  0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43,
+  0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82,
+  0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x8c, 0xc8, 0x21, 0x07, 0x7c, 0x70,
+  0x03, 0x72, 0x10, 0x87, 0x73, 0x70, 0x03, 0x7b, 0x08, 0x07, 0x79, 0x60,
+  0x87, 0x70, 0xc8, 0x87, 0x77, 0xa8, 0x07, 0x7a, 0x98, 0x81, 0x3c, 0xe4,
+  0x80, 0x0f, 0x6e, 0x40, 0x0f, 0xe5, 0xd0, 0x0e, 0xf0, 0x00, 0x00, 0x00,
+  0x71, 0x20, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x16, 0x30, 0x0d, 0x97,
+  0xef, 0x3c, 0xfe, 0xe2, 0x00, 0x83, 0xd8, 0x3c, 0xd4, 0xe4, 0x17, 0xb7,
+  0x6d, 0x02, 0xd5, 0x70, 0xf9, 0xce, 0xe3, 0x4b, 0x93, 0x13, 0x11, 0x28,
+  0x35, 0x3d, 0xd4, 0xe4, 0x17, 0xb7, 0x6d, 0x00, 0x04, 0x03, 0x20, 0x0d,
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48,
+  0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0xe3, 0x7f, 0x22,
+  0xb6, 0x5b, 0x10, 0xf4, 0xa4, 0x0f, 0xbe, 0x64, 0x48, 0x54, 0x5a, 0xc1,
+  0x44, 0x58, 0x49, 0x4c, 0xd4, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00,
+  0x35, 0x01, 0x00, 0x00, 0x44, 0x58, 0x49, 0x4c, 0x00, 0x01, 0x00, 0x00,
+  0x10, 0x00, 0x00, 0x00, 0xbc, 0x04, 0x00, 0x00, 0x42, 0x43, 0xc0, 0xde,
+  0x21, 0x0c, 0x00, 0x00, 0x2c, 0x01, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00,
+  0x02, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
+  0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c,
+  0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x10, 0x45, 0x02,
+  0x42, 0x92, 0x0b, 0x42, 0x84, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x4b,
+  0x0a, 0x32, 0x42, 0x88, 0x48, 0x90, 0x14, 0x20, 0x43, 0x46, 0x88, 0xa5,
+  0x00, 0x19, 0x32, 0x42, 0xe4, 0x48, 0x0e, 0x90, 0x11, 0x22, 0xc4, 0x50,
+  0x41, 0x51, 0x81, 0x8c, 0xe1, 0x83, 0xe5, 0x8a, 0x04, 0x21, 0x46, 0x06,
+  0x51, 0x18, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0xe0, 0xff,
+  0xff, 0xff, 0xff, 0x07, 0x40, 0x02, 0xa8, 0x0d, 0x84, 0xf0, 0xff, 0xff,
+  0xff, 0xff, 0x03, 0x20, 0x01, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+  0x02, 0x00, 0x00, 0x00, 0x13, 0x82, 0x60, 0x42, 0x20, 0x00, 0x00, 0x00,
+  0x89, 0x20, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x32, 0x22, 0x08, 0x09,
+  0x20, 0x64, 0x85, 0x04, 0x13, 0x22, 0xa4, 0x84, 0x04, 0x13, 0x22, 0xe3,
+  0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x88, 0x8c, 0x0b, 0x84, 0x84, 0x4c,
+  0x10, 0x30, 0x23, 0x00, 0x25, 0x00, 0x8a, 0x19, 0x80, 0x39, 0x02, 0x30,
+  0x98, 0x23, 0x40, 0x8a, 0x31, 0x44, 0x54, 0x44, 0x56, 0x0c, 0x20, 0xa2,
+  0x1a, 0xc2, 0x81, 0x80, 0x34, 0x20, 0x00, 0x00, 0x13, 0x14, 0x72, 0xc0,
+  0x87, 0x74, 0x60, 0x87, 0x36, 0x68, 0x87, 0x79, 0x68, 0x03, 0x72, 0xc0,
+  0x87, 0x0d, 0xaf, 0x50, 0x0e, 0x6d, 0xd0, 0x0e, 0x7a, 0x50, 0x0e, 0x6d,
+  0x00, 0x0f, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+  0x90, 0x0e, 0x71, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x78,
+  0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a,
+  0x30, 0x07, 0x72, 0xd0, 0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73,
+  0x20, 0x07, 0x6d, 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+  0xd0, 0x06, 0xe6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+  0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6,
+  0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0xe0, 0x0e, 0x78,
+  0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x76,
+  0x40, 0x07, 0x43, 0x9e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x86, 0x3c, 0x06, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x0c, 0x79, 0x10, 0x20, 0x00, 0x04, 0x00, 0x00,
+  0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x02, 0x01, 0x0b, 0x00, 0x00, 0x00,
+  0x32, 0x1e, 0x98, 0x10, 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47,
+  0xc6, 0x04, 0x43, 0xa2, 0x12, 0x18, 0x01, 0x28, 0x88, 0x62, 0x28, 0x83,
+  0xf2, 0xa0, 0x2a, 0x89, 0x11, 0x80, 0x22, 0x28, 0x84, 0x02, 0xa1, 0x1d,
+  0xcb, 0x20, 0x88, 0x40, 0x20, 0x10, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+  0x42, 0x00, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x90, 0x46, 0x02, 0x13, 0xc4,
+  0x8e, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x0c, 0x24, 0xc6, 0x05, 0xc7, 0x45,
+  0xa6, 0x06, 0x46, 0xc6, 0x05, 0x07, 0x04, 0x45, 0x8c, 0xe6, 0x26, 0x26,
+  0x06, 0x67, 0x26, 0xa7, 0x2c, 0x65, 0x43, 0x10, 0x4c, 0x10, 0x88, 0x61,
+  0x82, 0x40, 0x10, 0x1b, 0x84, 0x81, 0x98, 0x20, 0x10, 0xc5, 0x06, 0x61,
+  0x30, 0x28, 0xc0, 0xcd, 0x4d, 0x10, 0x08, 0x63, 0xc3, 0x80, 0x24, 0xc4,
+  0x04, 0x61, 0x71, 0x36, 0x04, 0xcb, 0x04, 0x41, 0x00, 0x48, 0xb4, 0x85,
+  0xa5, 0xb9, 0x11, 0xa1, 0x2a, 0xc2, 0x1a, 0x7a, 0x7a, 0x92, 0x22, 0x9a,
+  0x20, 0x14, 0xc9, 0x04, 0xa1, 0x50, 0x36, 0x04, 0xc4, 0x04, 0xa1, 0x58,
+  0x26, 0x08, 0x05, 0x33, 0x41, 0x20, 0x8e, 0x09, 0x02, 0x81, 0x6c, 0x10,
+  0x2a, 0x6b, 0xc3, 0x42, 0x3c, 0x50, 0x24, 0x4d, 0x03, 0x45, 0x44, 0xd7,
+  0x86, 0x00, 0x63, 0x32, 0x65, 0xf5, 0x45, 0x15, 0x26, 0x77, 0x56, 0x46,
+  0x37, 0x41, 0x28, 0x9a, 0x0d, 0x0b, 0xa1, 0x41, 0x9b, 0x14, 0x0d, 0x14,
+  0x11, 0x5d, 0x1b, 0x02, 0x6e, 0xc3, 0x90, 0x75, 0xc0, 0x86, 0xa2, 0x71,
+  0x3c, 0x00, 0xa8, 0xc2, 0xc6, 0x66, 0xd7, 0xe6, 0x92, 0x46, 0x56, 0xe6,
+  0x46, 0x37, 0x25, 0x08, 0xaa, 0x90, 0xe1, 0xb9, 0xd8, 0x95, 0xc9, 0xcd,
+  0xa5, 0xbd, 0xb9, 0x4d, 0x09, 0x88, 0x26, 0x64, 0x78, 0x2e, 0x76, 0x61,
+  0x6c, 0x76, 0x65, 0x72, 0x53, 0x02, 0xa3, 0x0e, 0x19, 0x9e, 0xcb, 0x1c,
+  0x5a, 0x18, 0x59, 0x99, 0x5c, 0xd3, 0x1b, 0x59, 0x19, 0xdb, 0x94, 0x20,
+  0xa9, 0x43, 0x86, 0xe7, 0x62, 0x97, 0x56, 0x76, 0x97, 0x44, 0x36, 0x45,
+  0x17, 0x46, 0x57, 0x36, 0x25, 0x58, 0xea, 0x90, 0xe1, 0xb9, 0x94, 0xb9,
+  0xd1, 0xc9, 0xe5, 0x41, 0xbd, 0xa5, 0xb9, 0xd1, 0xcd, 0x4d, 0x09, 0x3c,
+  0x00, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00,
+  0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88,
+  0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73,
+  0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e,
+  0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30,
+  0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8,
+  0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b,
+  0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76,
+  0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e,
+  0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e,
+  0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61,
+  0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4,
+  0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76,
+  0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37,
+  0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76,
+  0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71,
+  0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e,
+  0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1,
+  0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61,
+  0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90,
+  0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8,
+  0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc,
+  0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x8c, 0xc8,
+  0x21, 0x07, 0x7c, 0x70, 0x03, 0x72, 0x10, 0x87, 0x73, 0x70, 0x03, 0x7b,
+  0x08, 0x07, 0x79, 0x60, 0x87, 0x70, 0xc8, 0x87, 0x77, 0xa8, 0x07, 0x7a,
+  0x98, 0x81, 0x3c, 0xe4, 0x80, 0x0f, 0x6e, 0x40, 0x0f, 0xe5, 0xd0, 0x0e,
+  0xf0, 0x00, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00,
+  0x16, 0x30, 0x0d, 0x97, 0xef, 0x3c, 0xfe, 0xe2, 0x00, 0x83, 0xd8, 0x3c,
+  0xd4, 0xe4, 0x17, 0xb7, 0x6d, 0x02, 0xd5, 0x70, 0xf9, 0xce, 0xe3, 0x4b,
+  0x93, 0x13, 0x11, 0x28, 0x35, 0x3d, 0xd4, 0xe4, 0x17, 0xb7, 0x6d, 0x00,
+  0x04, 0x03, 0x20, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00,
+  0x1e, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00,
+  0x03, 0x00, 0x00, 0x00, 0x44, 0x85, 0x30, 0x03, 0x50, 0x0a, 0x54, 0x25,
+  0x50, 0x06, 0x00, 0x00, 0x23, 0x06, 0x09, 0x00, 0x82, 0x60, 0x60, 0x4c,
+  0x05, 0x04, 0x29, 0xc4, 0x88, 0x41, 0x02, 0x80, 0x20, 0x18, 0x18, 0x94,
+  0x11, 0x45, 0x43, 0x31, 0x62, 0x90, 0x00, 0x20, 0x08, 0x06, 0x46, 0x75,
+  0x48, 0xd2, 0x62, 0x8c, 0x18, 0x24, 0x00, 0x08, 0x82, 0x81, 0x61, 0x21,
+  0xd3, 0x44, 0x1c, 0x23, 0x06, 0x09, 0x00, 0x82, 0x60, 0x80, 0x58, 0x07,
+  0x45, 0x39, 0xc4, 0x88, 0x41, 0x02, 0x80, 0x20, 0x18, 0x20, 0xd6, 0x41,
+  0x51, 0xc6, 0x30, 0x62, 0x90, 0x00, 0x20, 0x08, 0x06, 0x88, 0x75, 0x50,
+  0x54, 0x23, 0x8c, 0x18, 0x24, 0x00, 0x08, 0x82, 0x01, 0x62, 0x1d, 0x14,
+  0x55, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00
+};
+static const unsigned int color_frag_dxil_len = 2816;
diff --git a/src/render/gpu/shaders/color.frag.hlsl b/src/render/gpu/shaders/color.frag.hlsl
new file mode 100644
index 000

(Patch may be truncated, please check the link at the top of this post.)