box3d/samples/shaders/generated/mask_capsule.glsl.h
Erin Catto 9e02b7f3b3
New sample renderer and UI (#10)
No changes to simulation
2026-06-06 10:06:05 -07:00

1613 lines
101 KiB
C++

#pragma once
/*
#version:1# (machine generated, don't edit!)
Generated by sokol-shdc (https://github.com/floooh/sokol-tools)
Cmdline:
sokol-shdc --input E:/box/box3d/samples/shaders/post/mask_capsule.glsl --output E:/box/box3d/samples/shaders/generated/mask_capsule.glsl.h --slang hlsl5:metal_macos:glsl430
Overview:
=========
Shader program: 'prog':
Get shader desc: mask_capsule_prog_shader_desc(sg_query_backend());
Vertex Shader: vs
Fragment Shader: fs
Attributes:
ATTR_mask_capsule_prog_in_pos => 0
Bindings:
Uniform block 'ub_frame':
C struct: mask_capsule_ub_frame_t
Bind slot: UB_mask_capsule_ub_frame => 0
Uniform block 'ub_pass':
C struct: mask_capsule_ub_pass_t
Bind slot: UB_mask_capsule_ub_pass => 1
Storage buffer 'instances':
C struct: mask_capsule_instance_t
Bind slot: VIEW_mask_capsule_instances => 0
Readonly: true
*/
#if !defined(SOKOL_GFX_INCLUDED)
#error "Please include sokol_gfx.h before mask_capsule.glsl.h"
#endif
#if !defined(SOKOL_SHDC_ALIGN)
#if defined(_MSC_VER)
#define SOKOL_SHDC_ALIGN(a) __declspec(align(a))
#else
#define SOKOL_SHDC_ALIGN(a) __attribute__((aligned(a)))
#endif
#endif
#define ATTR_mask_capsule_prog_in_pos (0)
#define UB_mask_capsule_ub_frame (0)
#define UB_mask_capsule_ub_pass (1)
#define VIEW_mask_capsule_instances (0)
#pragma pack(push,1)
SOKOL_SHDC_ALIGN(16) typedef struct mask_capsule_ub_frame_t {
Mat4 view_proj;
} mask_capsule_ub_frame_t;
#pragma pack(pop)
#pragma pack(push,1)
SOKOL_SHDC_ALIGN(16) typedef struct mask_capsule_ub_pass_t {
Mat4 view_proj;
Vec4 camera_pos;
} mask_capsule_ub_pass_t;
#pragma pack(pop)
#pragma pack(push,1)
SOKOL_SHDC_ALIGN(16) typedef struct mask_capsule_instance_t {
Vec4 xform_row0;
Vec4 xform_row1;
Vec4 xform_row2;
Vec4 params;
} mask_capsule_instance_t;
#pragma pack(pop)
/*
#version 430
struct instance
{
vec4 xform_row0;
vec4 xform_row1;
vec4 xform_row2;
vec4 params;
};
layout(binding = 0, std430) readonly buffer instances
{
instance items[];
} _15;
uniform vec4 ub_frame[4];
layout(location = 0) in vec3 in_pos;
layout(location = 0) sample out vec3 v_world_pos_proxy;
layout(location = 1) flat out vec3 v_center;
layout(location = 2) flat out float v_half_length;
layout(location = 3) flat out float v_radius;
layout(location = 4) flat out vec3 v_axis_x_world;
layout(location = 5) flat out float v_kind;
void main()
{
vec3 _48 = vec3(_15.items[gl_InstanceID].xform_row0.w, _15.items[gl_InstanceID].xform_row1.w, _15.items[gl_InstanceID].xform_row2.w);
vec3 _80 = vec3((in_pos.x * 2.0) * (_15.items[gl_InstanceID].params.x + _15.items[gl_InstanceID].params.y), (in_pos.y * 2.0) * _15.items[gl_InstanceID].params.y, (in_pos.z * 2.0) * _15.items[gl_InstanceID].params.y);
vec3 _99 = _48 + vec3(dot(_15.items[gl_InstanceID].xform_row0.xyz, _80), dot(_15.items[gl_InstanceID].xform_row1.xyz, _80), dot(_15.items[gl_InstanceID].xform_row2.xyz, _80));
v_world_pos_proxy = _99;
v_center = _48;
v_half_length = _15.items[gl_InstanceID].params.x;
v_radius = _15.items[gl_InstanceID].params.y;
v_axis_x_world = vec3(_15.items[gl_InstanceID].xform_row0.x, _15.items[gl_InstanceID].xform_row1.x, _15.items[gl_InstanceID].xform_row2.x);
v_kind = _15.items[gl_InstanceID].params.z;
gl_Position = mat4(ub_frame[0], ub_frame[1], ub_frame[2], ub_frame[3]) * vec4(_99, 1.0);
}
*/
static const uint8_t mask_capsule_vs_source_glsl430[1555] = {
0x23,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x20,0x34,0x33,0x30,0x0a,0x0a,0x73,0x74,
0x72,0x75,0x63,0x74,0x20,0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x0a,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,
0x6f,0x77,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x78,0x66,
0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,
0x63,0x34,0x20,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x70,0x61,0x72,0x61,0x6d,0x73,0x3b,0x0a,
0x7d,0x3b,0x0a,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x62,0x69,0x6e,0x64,0x69,
0x6e,0x67,0x20,0x3d,0x20,0x30,0x2c,0x20,0x73,0x74,0x64,0x34,0x33,0x30,0x29,0x20,
0x72,0x65,0x61,0x64,0x6f,0x6e,0x6c,0x79,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x20,
0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x73,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x20,0x69,0x74,0x65,0x6d,0x73,0x5b,0x5d,
0x3b,0x0a,0x7d,0x20,0x5f,0x31,0x35,0x3b,0x0a,0x0a,0x75,0x6e,0x69,0x66,0x6f,0x72,
0x6d,0x20,0x76,0x65,0x63,0x34,0x20,0x75,0x62,0x5f,0x66,0x72,0x61,0x6d,0x65,0x5b,
0x34,0x5d,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,
0x69,0x6f,0x6e,0x20,0x3d,0x20,0x30,0x29,0x20,0x69,0x6e,0x20,0x76,0x65,0x63,0x33,
0x20,0x69,0x6e,0x5f,0x70,0x6f,0x73,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,
0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,0x30,0x29,0x20,0x73,0x61,
0x6d,0x70,0x6c,0x65,0x20,0x6f,0x75,0x74,0x20,0x76,0x65,0x63,0x33,0x20,0x76,0x5f,
0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x3b,
0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,
0x20,0x3d,0x20,0x31,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x6f,0x75,0x74,0x20,0x76,
0x65,0x63,0x33,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x6c,0x61,
0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,
0x32,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x6f,0x75,0x74,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3b,
0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,
0x20,0x3d,0x20,0x33,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x6f,0x75,0x74,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,0x0a,0x6c,
0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,
0x20,0x34,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x6f,0x75,0x74,0x20,0x76,0x65,0x63,
0x33,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,
0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,
0x6e,0x20,0x3d,0x20,0x35,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x6f,0x75,0x74,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x3b,0x0a,0x0a,0x76,
0x6f,0x69,0x64,0x20,0x6d,0x61,0x69,0x6e,0x28,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x76,0x65,0x63,0x33,0x20,0x5f,0x34,0x38,0x20,0x3d,0x20,0x76,0x65,0x63,0x33,
0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,
0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,
0x72,0x6f,0x77,0x30,0x2e,0x77,0x2c,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,
0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,
0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x77,0x2c,0x20,0x5f,
0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,
0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,
0x77,0x32,0x2e,0x77,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x33,0x20,
0x5f,0x38,0x30,0x20,0x3d,0x20,0x76,0x65,0x63,0x33,0x28,0x28,0x69,0x6e,0x5f,0x70,
0x6f,0x73,0x2e,0x78,0x20,0x2a,0x20,0x32,0x2e,0x30,0x29,0x20,0x2a,0x20,0x28,0x5f,
0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,
0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x78,
0x20,0x2b,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,
0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,
0x6d,0x73,0x2e,0x79,0x29,0x2c,0x20,0x28,0x69,0x6e,0x5f,0x70,0x6f,0x73,0x2e,0x79,
0x20,0x2a,0x20,0x32,0x2e,0x30,0x29,0x20,0x2a,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,
0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,
0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x79,0x2c,0x20,0x28,0x69,0x6e,
0x5f,0x70,0x6f,0x73,0x2e,0x7a,0x20,0x2a,0x20,0x32,0x2e,0x30,0x29,0x20,0x2a,0x20,
0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,
0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,
0x79,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x33,0x20,0x5f,0x39,0x39,
0x20,0x3d,0x20,0x5f,0x34,0x38,0x20,0x2b,0x20,0x76,0x65,0x63,0x33,0x28,0x64,0x6f,
0x74,0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,
0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,
0x5f,0x72,0x6f,0x77,0x30,0x2e,0x78,0x79,0x7a,0x2c,0x20,0x5f,0x38,0x30,0x29,0x2c,
0x20,0x64,0x6f,0x74,0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,
0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x78,0x66,
0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x78,0x79,0x7a,0x2c,0x20,0x5f,0x38,
0x30,0x29,0x2c,0x20,0x64,0x6f,0x74,0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,
0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,
0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x78,0x79,0x7a,0x2c,
0x20,0x5f,0x38,0x30,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x77,0x6f,
0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x3d,0x20,
0x5f,0x39,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,
0x72,0x20,0x3d,0x20,0x5f,0x34,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x68,
0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x20,0x3d,0x20,0x5f,0x31,0x35,
0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,
0x63,0x65,0x49,0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x78,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x20,0x3d,0x20,0x5f,
0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,
0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x79,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,
0x6f,0x72,0x6c,0x64,0x20,0x3d,0x20,0x76,0x65,0x63,0x33,0x28,0x5f,0x31,0x35,0x2e,
0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,
0x65,0x49,0x44,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x30,0x2e,
0x78,0x2c,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,
0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x78,0x66,0x6f,0x72,
0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x78,0x2c,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,
0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,
0x44,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x78,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3d,0x20,0x5f,
0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,
0x61,0x6e,0x63,0x65,0x49,0x44,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x7a,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x67,0x6c,0x5f,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,
0x6e,0x20,0x3d,0x20,0x6d,0x61,0x74,0x34,0x28,0x75,0x62,0x5f,0x66,0x72,0x61,0x6d,
0x65,0x5b,0x30,0x5d,0x2c,0x20,0x75,0x62,0x5f,0x66,0x72,0x61,0x6d,0x65,0x5b,0x31,
0x5d,0x2c,0x20,0x75,0x62,0x5f,0x66,0x72,0x61,0x6d,0x65,0x5b,0x32,0x5d,0x2c,0x20,
0x75,0x62,0x5f,0x66,0x72,0x61,0x6d,0x65,0x5b,0x33,0x5d,0x29,0x20,0x2a,0x20,0x76,
0x65,0x63,0x34,0x28,0x5f,0x39,0x39,0x2c,0x20,0x31,0x2e,0x30,0x29,0x3b,0x0a,0x7d,
0x0a,0x0a,0x00,
};
/*
#version 430
uniform vec4 ub_pass[5];
layout(location = 0) sample in vec3 v_world_pos_proxy;
layout(location = 4) flat in vec3 v_axis_x_world;
layout(location = 1) flat in vec3 v_center;
layout(location = 2) flat in float v_half_length;
layout(location = 3) flat in float v_radius;
layout(location = 0) out vec4 out_kind;
layout(location = 5) flat in float v_kind;
void main()
{
vec3 _27 = normalize(v_world_pos_proxy - ub_pass[4].xyz);
vec3 _38 = v_axis_x_world * v_half_length;
vec3 _39 = v_center - _38;
vec3 _45 = v_center + _38;
vec3 _49 = _45 - _39;
vec3 _53 = ub_pass[4].xyz - _39;
float _58 = dot(_49, _49);
float _62 = dot(_49, _27);
float _66 = dot(_49, _53);
float _74 = dot(_53, _53);
float _80 = _58 - (_62 * _62);
float _88 = (_58 * dot(_27, _53)) - (_66 * _62);
float _100 = v_radius * v_radius;
float _111 = (_88 * _88) - (_80 * (((_58 * _74) - (_66 * _66)) - (_100 * _58)));
float t = -1.0;
if ((_111 >= 0.0) && (_80 > 9.9999999392252902907785028219223e-09))
{
float _131 = ((-_88) - sqrt(_111)) / _80;
float _137 = _66 + (_131 * _62);
if (((_131 > 0.0) && (_137 > 0.0)) && (_137 < _58))
{
t = _131;
}
}
float _157 = dot(_53, _27);
float _171 = (_157 * _157) - (_74 - _100);
if (_171 >= 0.0)
{
float _181 = (-_157) - sqrt(_171);
bool _183 = _181 > 0.0;
bool _192;
if (_183)
{
_192 = (t < 0.0) || (_181 < t);
}
else
{
_192 = _183;
}
if (_192)
{
if (dot((ub_pass[4].xyz + (_27 * _181)) - _39, v_axis_x_world) <= 0.0)
{
t = _181;
}
}
}
vec3 _213 = ub_pass[4].xyz - _45;
float _217 = dot(_213, _27);
float _231 = (_217 * _217) - (dot(_213, _213) - _100);
if (_231 >= 0.0)
{
float _241 = (-_217) - sqrt(_231);
bool _243 = _241 > 0.0;
bool _252;
if (_243)
{
_252 = (t < 0.0) || (_241 < t);
}
else
{
_252 = _243;
}
if (_252)
{
if (dot((ub_pass[4].xyz + (_27 * _241)) - _45, v_axis_x_world) >= 0.0)
{
t = _241;
}
}
}
if (t < 0.0)
{
discard;
}
vec4 _293 = mat4(ub_pass[0], ub_pass[1], ub_pass[2], ub_pass[3]) * vec4(ub_pass[4].xyz + (_27 * t), 1.0);
gl_FragDepth = _293.z / _293.w;
out_kind = vec4(v_kind * 0.5, 0.0, 0.0, 1.0);
}
*/
static const uint8_t mask_capsule_fs_source_glsl430[2586] = {
0x23,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x20,0x34,0x33,0x30,0x0a,0x0a,0x75,0x6e,
0x69,0x66,0x6f,0x72,0x6d,0x20,0x76,0x65,0x63,0x34,0x20,0x75,0x62,0x5f,0x70,0x61,
0x73,0x73,0x5b,0x35,0x5d,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,
0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,0x30,0x29,0x20,0x73,0x61,0x6d,0x70,
0x6c,0x65,0x20,0x69,0x6e,0x20,0x76,0x65,0x63,0x33,0x20,0x76,0x5f,0x77,0x6f,0x72,
0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x3b,0x0a,0x6c,0x61,
0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,
0x34,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x69,0x6e,0x20,0x76,0x65,0x63,0x33,0x20,
0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x3b,0x0a,
0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,
0x3d,0x20,0x31,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x69,0x6e,0x20,0x76,0x65,0x63,
0x33,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x6c,0x61,0x79,0x6f,
0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,0x32,0x29,
0x20,0x66,0x6c,0x61,0x74,0x20,0x69,0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,
0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3b,0x0a,0x6c,0x61,
0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,
0x33,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x69,0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,
0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,0x30,0x29,0x20,
0x6f,0x75,0x74,0x20,0x76,0x65,0x63,0x34,0x20,0x6f,0x75,0x74,0x5f,0x6b,0x69,0x6e,
0x64,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,
0x6f,0x6e,0x20,0x3d,0x20,0x35,0x29,0x20,0x66,0x6c,0x61,0x74,0x20,0x69,0x6e,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x3b,0x0a,0x0a,0x76,
0x6f,0x69,0x64,0x20,0x6d,0x61,0x69,0x6e,0x28,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x76,0x65,0x63,0x33,0x20,0x5f,0x32,0x37,0x20,0x3d,0x20,0x6e,0x6f,0x72,0x6d,
0x61,0x6c,0x69,0x7a,0x65,0x28,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,
0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x2d,0x20,0x75,0x62,0x5f,0x70,0x61,0x73,
0x73,0x5b,0x34,0x5d,0x2e,0x78,0x79,0x7a,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,
0x65,0x63,0x33,0x20,0x5f,0x33,0x38,0x20,0x3d,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,
0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x2a,0x20,0x76,0x5f,0x68,0x61,0x6c,
0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,
0x63,0x33,0x20,0x5f,0x33,0x39,0x20,0x3d,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,
0x72,0x20,0x2d,0x20,0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,
0x33,0x20,0x5f,0x34,0x35,0x20,0x3d,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,
0x20,0x2b,0x20,0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x33,
0x20,0x5f,0x34,0x39,0x20,0x3d,0x20,0x5f,0x34,0x35,0x20,0x2d,0x20,0x5f,0x33,0x39,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x33,0x20,0x5f,0x35,0x33,0x20,0x3d,
0x20,0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,0x34,0x5d,0x2e,0x78,0x79,0x7a,0x20,
0x2d,0x20,0x5f,0x33,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x5f,0x35,0x38,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x34,0x39,0x2c,0x20,
0x5f,0x34,0x39,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x5f,0x36,0x32,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x34,0x39,0x2c,0x20,0x5f,
0x32,0x37,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,
0x36,0x36,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x34,0x39,0x2c,0x20,0x5f,0x35,
0x33,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x37,
0x34,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x35,0x33,0x2c,0x20,0x5f,0x35,0x33,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x38,0x30,
0x20,0x3d,0x20,0x5f,0x35,0x38,0x20,0x2d,0x20,0x28,0x5f,0x36,0x32,0x20,0x2a,0x20,
0x5f,0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x5f,0x38,0x38,0x20,0x3d,0x20,0x28,0x5f,0x35,0x38,0x20,0x2a,0x20,0x64,0x6f,0x74,
0x28,0x5f,0x32,0x37,0x2c,0x20,0x5f,0x35,0x33,0x29,0x29,0x20,0x2d,0x20,0x28,0x5f,
0x36,0x36,0x20,0x2a,0x20,0x5f,0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x30,0x30,0x20,0x3d,0x20,0x76,0x5f,0x72,0x61,
0x64,0x69,0x75,0x73,0x20,0x2a,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x31,0x31,0x20,
0x3d,0x20,0x28,0x5f,0x38,0x38,0x20,0x2a,0x20,0x5f,0x38,0x38,0x29,0x20,0x2d,0x20,
0x28,0x5f,0x38,0x30,0x20,0x2a,0x20,0x28,0x28,0x28,0x5f,0x35,0x38,0x20,0x2a,0x20,
0x5f,0x37,0x34,0x29,0x20,0x2d,0x20,0x28,0x5f,0x36,0x36,0x20,0x2a,0x20,0x5f,0x36,
0x36,0x29,0x29,0x20,0x2d,0x20,0x28,0x5f,0x31,0x30,0x30,0x20,0x2a,0x20,0x5f,0x35,
0x38,0x29,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x74,0x20,0x3d,0x20,0x2d,0x31,0x2e,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,
0x20,0x28,0x28,0x5f,0x31,0x31,0x31,0x20,0x3e,0x3d,0x20,0x30,0x2e,0x30,0x29,0x20,
0x26,0x26,0x20,0x28,0x5f,0x38,0x30,0x20,0x3e,0x20,0x39,0x2e,0x39,0x39,0x39,0x39,
0x39,0x39,0x39,0x33,0x39,0x32,0x32,0x35,0x32,0x39,0x30,0x32,0x39,0x30,0x37,0x37,
0x38,0x35,0x30,0x32,0x38,0x32,0x31,0x39,0x32,0x32,0x33,0x65,0x2d,0x30,0x39,0x29,
0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x33,0x31,0x20,0x3d,0x20,0x28,0x28,0x2d,
0x5f,0x38,0x38,0x29,0x20,0x2d,0x20,0x73,0x71,0x72,0x74,0x28,0x5f,0x31,0x31,0x31,
0x29,0x29,0x20,0x2f,0x20,0x5f,0x38,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x33,0x37,0x20,0x3d,0x20,0x5f,
0x36,0x36,0x20,0x2b,0x20,0x28,0x5f,0x31,0x33,0x31,0x20,0x2a,0x20,0x5f,0x36,0x32,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x28,
0x28,0x5f,0x31,0x33,0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,0x29,0x20,0x26,0x26,0x20,
0x28,0x5f,0x31,0x33,0x37,0x20,0x3e,0x20,0x30,0x2e,0x30,0x29,0x29,0x20,0x26,0x26,
0x20,0x28,0x5f,0x31,0x33,0x37,0x20,0x3c,0x20,0x5f,0x35,0x38,0x29,0x29,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x74,0x20,0x3d,0x20,0x5f,0x31,0x33,0x31,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x35,0x37,0x20,0x3d,0x20,
0x64,0x6f,0x74,0x28,0x5f,0x35,0x33,0x2c,0x20,0x5f,0x32,0x37,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x37,0x31,0x20,0x3d,0x20,
0x28,0x5f,0x31,0x35,0x37,0x20,0x2a,0x20,0x5f,0x31,0x35,0x37,0x29,0x20,0x2d,0x20,
0x28,0x5f,0x37,0x34,0x20,0x2d,0x20,0x5f,0x31,0x30,0x30,0x29,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x31,0x37,0x31,0x20,0x3e,0x3d,0x20,0x30,0x2e,
0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x38,0x31,0x20,0x3d,0x20,0x28,0x2d,
0x5f,0x31,0x35,0x37,0x29,0x20,0x2d,0x20,0x73,0x71,0x72,0x74,0x28,0x5f,0x31,0x37,
0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,
0x20,0x5f,0x31,0x38,0x33,0x20,0x3d,0x20,0x5f,0x31,0x38,0x31,0x20,0x3e,0x20,0x30,
0x2e,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,
0x20,0x5f,0x31,0x39,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,
0x66,0x20,0x28,0x5f,0x31,0x38,0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,
0x31,0x39,0x32,0x20,0x3d,0x20,0x28,0x74,0x20,0x3c,0x20,0x30,0x2e,0x30,0x29,0x20,
0x7c,0x7c,0x20,0x28,0x5f,0x31,0x38,0x31,0x20,0x3c,0x20,0x74,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x65,0x6c,0x73,0x65,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x32,
0x20,0x3d,0x20,0x5f,0x31,0x38,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,
0x31,0x39,0x32,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x64,
0x6f,0x74,0x28,0x28,0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,0x34,0x5d,0x2e,0x78,
0x79,0x7a,0x20,0x2b,0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x5f,0x31,0x38,0x31,
0x29,0x29,0x20,0x2d,0x20,0x5f,0x33,0x39,0x2c,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,
0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x29,0x20,0x3c,0x3d,0x20,0x30,0x2e,0x30,
0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x74,0x20,0x3d,0x20,0x5f,0x31,0x38,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x33,
0x20,0x5f,0x32,0x31,0x33,0x20,0x3d,0x20,0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,
0x34,0x5d,0x2e,0x78,0x79,0x7a,0x20,0x2d,0x20,0x5f,0x34,0x35,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x32,0x31,0x37,0x20,0x3d,0x20,0x64,
0x6f,0x74,0x28,0x5f,0x32,0x31,0x33,0x2c,0x20,0x5f,0x32,0x37,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x32,0x33,0x31,0x20,0x3d,0x20,
0x28,0x5f,0x32,0x31,0x37,0x20,0x2a,0x20,0x5f,0x32,0x31,0x37,0x29,0x20,0x2d,0x20,
0x28,0x64,0x6f,0x74,0x28,0x5f,0x32,0x31,0x33,0x2c,0x20,0x5f,0x32,0x31,0x33,0x29,
0x20,0x2d,0x20,0x5f,0x31,0x30,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,
0x20,0x28,0x5f,0x32,0x33,0x31,0x20,0x3e,0x3d,0x20,0x30,0x2e,0x30,0x29,0x0a,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x5f,0x32,0x34,0x31,0x20,0x3d,0x20,0x28,0x2d,0x5f,0x32,0x31,0x37,
0x29,0x20,0x2d,0x20,0x73,0x71,0x72,0x74,0x28,0x5f,0x32,0x33,0x31,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x32,0x34,
0x33,0x20,0x3d,0x20,0x5f,0x32,0x34,0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x32,0x35,
0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,
0x32,0x34,0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x32,0x35,0x32,0x20,
0x3d,0x20,0x28,0x74,0x20,0x3c,0x20,0x30,0x2e,0x30,0x29,0x20,0x7c,0x7c,0x20,0x28,
0x5f,0x32,0x34,0x31,0x20,0x3c,0x20,0x74,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x6c,0x73,
0x65,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x32,0x35,0x32,0x20,0x3d,0x20,0x5f,
0x32,0x34,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x35,0x32,0x29,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x64,0x6f,0x74,0x28,0x28,
0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,0x34,0x5d,0x2e,0x78,0x79,0x7a,0x20,0x2b,
0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x5f,0x32,0x34,0x31,0x29,0x29,0x20,0x2d,
0x20,0x5f,0x34,0x35,0x2c,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,
0x6f,0x72,0x6c,0x64,0x29,0x20,0x3e,0x3d,0x20,0x30,0x2e,0x30,0x29,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x74,0x20,0x3d,0x20,
0x5f,0x32,0x34,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x74,0x20,0x3c,0x20,
0x30,0x2e,0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x64,0x69,0x73,0x63,0x61,0x72,0x64,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x5f,0x32,0x39,0x33,0x20,
0x3d,0x20,0x6d,0x61,0x74,0x34,0x28,0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,0x30,
0x5d,0x2c,0x20,0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,0x31,0x5d,0x2c,0x20,0x75,
0x62,0x5f,0x70,0x61,0x73,0x73,0x5b,0x32,0x5d,0x2c,0x20,0x75,0x62,0x5f,0x70,0x61,
0x73,0x73,0x5b,0x33,0x5d,0x29,0x20,0x2a,0x20,0x76,0x65,0x63,0x34,0x28,0x75,0x62,
0x5f,0x70,0x61,0x73,0x73,0x5b,0x34,0x5d,0x2e,0x78,0x79,0x7a,0x20,0x2b,0x20,0x28,
0x5f,0x32,0x37,0x20,0x2a,0x20,0x74,0x29,0x2c,0x20,0x31,0x2e,0x30,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x67,0x6c,0x5f,0x46,0x72,0x61,0x67,0x44,0x65,0x70,0x74,0x68,
0x20,0x3d,0x20,0x5f,0x32,0x39,0x33,0x2e,0x7a,0x20,0x2f,0x20,0x5f,0x32,0x39,0x33,
0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x5f,0x6b,0x69,0x6e,0x64,
0x20,0x3d,0x20,0x76,0x65,0x63,0x34,0x28,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x2a,
0x20,0x30,0x2e,0x35,0x2c,0x20,0x30,0x2e,0x30,0x2c,0x20,0x30,0x2e,0x30,0x2c,0x20,
0x31,0x2e,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x00,
};
/*
struct instance
{
float4 xform_row0;
float4 xform_row1;
float4 xform_row2;
float4 params;
};
ByteAddressBuffer _15 : register(t0);
cbuffer ub_frame : register(b0)
{
row_major float4x4 _128_view_proj : packoffset(c0);
};
static float4 gl_Position;
static int gl_InstanceIndex;
static float3 in_pos;
static float3 v_world_pos_proxy;
static float3 v_center;
static float v_half_length;
static float v_radius;
static float3 v_axis_x_world;
static float v_kind;
struct SPIRV_Cross_Input
{
float3 in_pos : TEXCOORD0;
uint gl_InstanceIndex : SV_InstanceID;
};
struct SPIRV_Cross_Output
{
sample float3 v_world_pos_proxy : TEXCOORD0;
nointerpolation float3 v_center : TEXCOORD1;
nointerpolation float v_half_length : TEXCOORD2;
nointerpolation float v_radius : TEXCOORD3;
nointerpolation float3 v_axis_x_world : TEXCOORD4;
nointerpolation float v_kind : TEXCOORD5;
float4 gl_Position : SV_Position;
};
void vert_main()
{
instance _23;
_23.xform_row0 = asfloat(_15.Load4(gl_InstanceIndex * 64 + 0));
_23.xform_row1 = asfloat(_15.Load4(gl_InstanceIndex * 64 + 16));
_23.xform_row2 = asfloat(_15.Load4(gl_InstanceIndex * 64 + 32));
_23.params = asfloat(_15.Load4(gl_InstanceIndex * 64 + 48));
float3 _48 = float3(_23.xform_row0.w, _23.xform_row1.w, _23.xform_row2.w);
float3 _80 = float3((in_pos.x * 2.0f) * (_23.params.x + _23.params.y), (in_pos.y * 2.0f) * _23.params.y, (in_pos.z * 2.0f) * _23.params.y);
float3 _99 = _48 + float3(dot(_23.xform_row0.xyz, _80), dot(_23.xform_row1.xyz, _80), dot(_23.xform_row2.xyz, _80));
v_world_pos_proxy = _99;
v_center = _48;
v_half_length = _23.params.x;
v_radius = _23.params.y;
v_axis_x_world = float3(_23.xform_row0.x, _23.xform_row1.x, _23.xform_row2.x);
v_kind = _23.params.z;
gl_Position = mul(float4(_99, 1.0f), _128_view_proj);
}
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
gl_InstanceIndex = int(stage_input.gl_InstanceIndex);
in_pos = stage_input.in_pos;
vert_main();
SPIRV_Cross_Output stage_output;
stage_output.gl_Position = gl_Position;
stage_output.v_world_pos_proxy = v_world_pos_proxy;
stage_output.v_center = v_center;
stage_output.v_half_length = v_half_length;
stage_output.v_radius = v_radius;
stage_output.v_axis_x_world = v_axis_x_world;
stage_output.v_kind = v_kind;
return stage_output;
}
*/
static const uint8_t mask_capsule_vs_source_hlsl5[2429] = {
0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x0a,
0x7b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x78,0x66,0x6f,
0x72,0x6d,0x5f,0x72,0x6f,0x77,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x34,0x20,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x78,0x66,0x6f,0x72,0x6d,
0x5f,0x72,0x6f,0x77,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x34,0x20,0x70,0x61,0x72,0x61,0x6d,0x73,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x42,0x79,
0x74,0x65,0x41,0x64,0x64,0x72,0x65,0x73,0x73,0x42,0x75,0x66,0x66,0x65,0x72,0x20,
0x5f,0x31,0x35,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x74,
0x30,0x29,0x3b,0x0a,0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x75,0x62,0x5f,0x66,
0x72,0x61,0x6d,0x65,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,
0x62,0x30,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x72,0x6f,0x77,0x5f,0x6d,0x61,
0x6a,0x6f,0x72,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x5f,0x31,0x32,
0x38,0x5f,0x76,0x69,0x65,0x77,0x5f,0x70,0x72,0x6f,0x6a,0x20,0x3a,0x20,0x70,0x61,
0x63,0x6b,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x63,0x30,0x29,0x3b,0x0a,0x7d,0x3b,
0x0a,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x20,0x67,0x6c,0x5f,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3b,0x0a,0x73,0x74,
0x61,0x74,0x69,0x63,0x20,0x69,0x6e,0x74,0x20,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,
0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,
0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x69,0x6e,0x5f,0x70,0x6f,0x73,0x3b,
0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,
0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,
0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,
0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,
0x6e,0x67,0x74,0x68,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,0x0a,0x73,0x74,0x61,
0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x61,0x78,0x69,
0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,
0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x3b,0x0a,
0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,
0x6f,0x73,0x73,0x5f,0x49,0x6e,0x70,0x75,0x74,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x69,0x6e,0x5f,0x70,0x6f,0x73,0x20,0x3a,0x20,
0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x75,
0x69,0x6e,0x74,0x20,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,
0x6e,0x64,0x65,0x78,0x20,0x3a,0x20,0x53,0x56,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,
0x63,0x65,0x49,0x44,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,
0x20,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x4f,0x75,0x74,
0x70,0x75,0x74,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,
0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x3a,0x20,0x54,0x45,0x58,0x43,
0x4f,0x4f,0x52,0x44,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6e,0x6f,0x69,0x6e,0x74,
0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x33,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x3a,0x20,0x54,0x45,0x58,
0x43,0x4f,0x4f,0x52,0x44,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6e,0x6f,0x69,0x6e,
0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x20,
0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,0x32,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x6e,0x6f,0x69,0x6e,0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x20,
0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,0x33,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x6e,0x6f,0x69,0x6e,0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,
0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,
0x44,0x34,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6e,0x6f,0x69,0x6e,0x74,0x65,0x72,0x70,
0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,
0x6b,0x69,0x6e,0x64,0x20,0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,0x35,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x67,0x6c,0x5f,
0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x20,0x3a,0x20,0x53,0x56,0x5f,0x50,0x6f,
0x73,0x69,0x74,0x69,0x6f,0x6e,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x76,0x6f,0x69,0x64,
0x20,0x76,0x65,0x72,0x74,0x5f,0x6d,0x61,0x69,0x6e,0x28,0x29,0x0a,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x20,0x5f,0x32,0x33,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,
0x6f,0x77,0x30,0x20,0x3d,0x20,0x61,0x73,0x66,0x6c,0x6f,0x61,0x74,0x28,0x5f,0x31,
0x35,0x2e,0x4c,0x6f,0x61,0x64,0x34,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,
0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x20,0x2a,0x20,0x36,0x34,0x20,0x2b,0x20,
0x30,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,
0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x20,0x3d,0x20,0x61,0x73,0x66,0x6c,0x6f,0x61,
0x74,0x28,0x5f,0x31,0x35,0x2e,0x4c,0x6f,0x61,0x64,0x34,0x28,0x67,0x6c,0x5f,0x49,
0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x20,0x2a,0x20,0x36,
0x34,0x20,0x2b,0x20,0x31,0x36,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x5f,0x32,
0x33,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x20,0x3d,0x20,0x61,
0x73,0x66,0x6c,0x6f,0x61,0x74,0x28,0x5f,0x31,0x35,0x2e,0x4c,0x6f,0x61,0x64,0x34,
0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,
0x78,0x20,0x2a,0x20,0x36,0x34,0x20,0x2b,0x20,0x33,0x32,0x29,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x5f,0x32,0x33,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x20,0x3d,0x20,
0x61,0x73,0x66,0x6c,0x6f,0x61,0x74,0x28,0x5f,0x31,0x35,0x2e,0x4c,0x6f,0x61,0x64,
0x34,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,
0x65,0x78,0x20,0x2a,0x20,0x36,0x34,0x20,0x2b,0x20,0x34,0x38,0x29,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x34,0x38,0x20,0x3d,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x28,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,
0x6d,0x5f,0x72,0x6f,0x77,0x30,0x2e,0x77,0x2c,0x20,0x5f,0x32,0x33,0x2e,0x78,0x66,
0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x77,0x2c,0x20,0x5f,0x32,0x33,0x2e,
0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x77,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x38,0x30,0x20,0x3d,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x33,0x28,0x28,0x69,0x6e,0x5f,0x70,0x6f,0x73,0x2e,0x78,
0x20,0x2a,0x20,0x32,0x2e,0x30,0x66,0x29,0x20,0x2a,0x20,0x28,0x5f,0x32,0x33,0x2e,
0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x78,0x20,0x2b,0x20,0x5f,0x32,0x33,0x2e,0x70,
0x61,0x72,0x61,0x6d,0x73,0x2e,0x79,0x29,0x2c,0x20,0x28,0x69,0x6e,0x5f,0x70,0x6f,
0x73,0x2e,0x79,0x20,0x2a,0x20,0x32,0x2e,0x30,0x66,0x29,0x20,0x2a,0x20,0x5f,0x32,
0x33,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x79,0x2c,0x20,0x28,0x69,0x6e,0x5f,
0x70,0x6f,0x73,0x2e,0x7a,0x20,0x2a,0x20,0x32,0x2e,0x30,0x66,0x29,0x20,0x2a,0x20,
0x5f,0x32,0x33,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x79,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x39,0x39,0x20,0x3d,0x20,
0x5f,0x34,0x38,0x20,0x2b,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x28,0x64,0x6f,0x74,
0x28,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x30,0x2e,
0x78,0x79,0x7a,0x2c,0x20,0x5f,0x38,0x30,0x29,0x2c,0x20,0x64,0x6f,0x74,0x28,0x5f,
0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x78,0x79,
0x7a,0x2c,0x20,0x5f,0x38,0x30,0x29,0x2c,0x20,0x64,0x6f,0x74,0x28,0x5f,0x32,0x33,
0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x78,0x79,0x7a,0x2c,
0x20,0x5f,0x38,0x30,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x77,0x6f,
0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x3d,0x20,
0x5f,0x39,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,
0x72,0x20,0x3d,0x20,0x5f,0x34,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x68,
0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x20,0x3d,0x20,0x5f,0x32,0x33,
0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,
0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x20,0x3d,0x20,0x5f,0x32,0x33,0x2e,0x70,0x61,
0x72,0x61,0x6d,0x73,0x2e,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x61,0x78,
0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x3d,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x33,0x28,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,
0x77,0x30,0x2e,0x78,0x2c,0x20,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,
0x72,0x6f,0x77,0x31,0x2e,0x78,0x2c,0x20,0x5f,0x32,0x33,0x2e,0x78,0x66,0x6f,0x72,
0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x78,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,
0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3d,0x20,0x5f,0x32,0x33,0x2e,0x70,0x61,0x72,0x61,
0x6d,0x73,0x2e,0x7a,0x3b,0x0a,0x20,0x20,0x20,0x20,0x67,0x6c,0x5f,0x50,0x6f,0x73,
0x69,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,0x6d,0x75,0x6c,0x28,0x66,0x6c,0x6f,0x61,
0x74,0x34,0x28,0x5f,0x39,0x39,0x2c,0x20,0x31,0x2e,0x30,0x66,0x29,0x2c,0x20,0x5f,
0x31,0x32,0x38,0x5f,0x76,0x69,0x65,0x77,0x5f,0x70,0x72,0x6f,0x6a,0x29,0x3b,0x0a,
0x7d,0x0a,0x0a,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x4f,
0x75,0x74,0x70,0x75,0x74,0x20,0x6d,0x61,0x69,0x6e,0x28,0x53,0x50,0x49,0x52,0x56,
0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x49,0x6e,0x70,0x75,0x74,0x20,0x73,0x74,0x61,
0x67,0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,
0x20,0x3d,0x20,0x69,0x6e,0x74,0x28,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,
0x75,0x74,0x2e,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,
0x64,0x65,0x78,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x5f,0x70,0x6f,0x73,
0x20,0x3d,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x2e,0x69,
0x6e,0x5f,0x70,0x6f,0x73,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x65,0x72,0x74,0x5f,
0x6d,0x61,0x69,0x6e,0x28,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x53,0x50,0x49,0x52,
0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x20,0x73,
0x74,0x61,0x67,0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x67,0x6c,
0x5f,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x20,0x3d,0x20,0x67,0x6c,0x5f,0x50,
0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x74,0x61,
0x67,0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x76,0x5f,0x77,0x6f,0x72,0x6c,
0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x3d,0x20,0x76,0x5f,
0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,
0x74,0x2e,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x3d,0x20,0x76,0x5f,0x63,
0x65,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x74,0x61,0x67,0x65,
0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,
0x65,0x6e,0x67,0x74,0x68,0x20,0x3d,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,
0x65,0x6e,0x67,0x74,0x68,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x74,0x61,0x67,0x65,
0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,
0x20,0x3d,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x76,0x5f,
0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x3d,0x20,0x76,
0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,
0x76,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3d,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x73,0x74,0x61,0x67,
0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x3b,0x0a,0x7d,0x0a,0x00,
};
/*
cbuffer ub_pass : register(b1)
{
row_major float4x4 _14_view_proj : packoffset(c0);
float4 _14_camera_pos : packoffset(c4);
};
static float gl_FragDepth;
static float3 v_world_pos_proxy;
static float3 v_axis_x_world;
static float3 v_center;
static float v_half_length;
static float v_radius;
static float4 out_kind;
static float v_kind;
struct SPIRV_Cross_Input
{
sample float3 v_world_pos_proxy : TEXCOORD0;
nointerpolation float3 v_center : TEXCOORD1;
nointerpolation float v_half_length : TEXCOORD2;
nointerpolation float v_radius : TEXCOORD3;
nointerpolation float3 v_axis_x_world : TEXCOORD4;
nointerpolation float v_kind : TEXCOORD5;
};
struct SPIRV_Cross_Output
{
float4 out_kind : SV_Target0;
float gl_FragDepth : SV_Depth;
};
void frag_main()
{
float3 _27 = normalize(v_world_pos_proxy - _14_camera_pos.xyz);
float3 _38 = v_axis_x_world * v_half_length;
float3 _39 = v_center - _38;
float3 _45 = v_center + _38;
float3 _49 = _45 - _39;
float3 _53 = _14_camera_pos.xyz - _39;
float _58 = dot(_49, _49);
float _62 = dot(_49, _27);
float _66 = dot(_49, _53);
float _74 = dot(_53, _53);
float _80 = _58 - (_62 * _62);
float _88 = (_58 * dot(_27, _53)) - (_66 * _62);
float _100 = v_radius * v_radius;
float _111 = (_88 * _88) - (_80 * (((_58 * _74) - (_66 * _66)) - (_100 * _58)));
float t = -1.0f;
if ((_111 >= 0.0f) && (_80 > 9.9999999392252902907785028219223e-09f))
{
float _131 = ((-_88) - sqrt(_111)) / _80;
float _137 = _66 + (_131 * _62);
if (((_131 > 0.0f) && (_137 > 0.0f)) && (_137 < _58))
{
t = _131;
}
}
float _157 = dot(_53, _27);
float _171 = (_157 * _157) - (_74 - _100);
if (_171 >= 0.0f)
{
float _181 = (-_157) - sqrt(_171);
bool _183 = _181 > 0.0f;
bool _192;
if (_183)
{
_192 = (t < 0.0f) || (_181 < t);
}
else
{
_192 = _183;
}
if (_192)
{
if (dot((_14_camera_pos.xyz + (_27 * _181)) - _39, v_axis_x_world) <= 0.0f)
{
t = _181;
}
}
}
float3 _213 = _14_camera_pos.xyz - _45;
float _217 = dot(_213, _27);
float _231 = (_217 * _217) - (dot(_213, _213) - _100);
if (_231 >= 0.0f)
{
float _241 = (-_217) - sqrt(_231);
bool _243 = _241 > 0.0f;
bool _252;
if (_243)
{
_252 = (t < 0.0f) || (_241 < t);
}
else
{
_252 = _243;
}
if (_252)
{
if (dot((_14_camera_pos.xyz + (_27 * _241)) - _45, v_axis_x_world) >= 0.0f)
{
t = _241;
}
}
}
if (t < 0.0f)
{
discard;
}
float4 _293 = mul(float4(_14_camera_pos.xyz + (_27 * t), 1.0f), _14_view_proj);
gl_FragDepth = _293.z / _293.w;
out_kind = float4(v_kind * 0.5f, 0.0f, 0.0f, 1.0f);
}
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
v_world_pos_proxy = stage_input.v_world_pos_proxy;
v_axis_x_world = stage_input.v_axis_x_world;
v_center = stage_input.v_center;
v_half_length = stage_input.v_half_length;
v_radius = stage_input.v_radius;
v_kind = stage_input.v_kind;
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.gl_FragDepth = gl_FragDepth;
stage_output.out_kind = out_kind;
return stage_output;
}
*/
static const uint8_t mask_capsule_fs_source_hlsl5[3512] = {
0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x75,0x62,0x5f,0x70,0x61,0x73,0x73,0x20,
0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x31,0x29,0x0a,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x72,0x6f,0x77,0x5f,0x6d,0x61,0x6a,0x6f,0x72,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x5f,0x31,0x34,0x5f,0x76,0x69,0x65,0x77,
0x5f,0x70,0x72,0x6f,0x6a,0x20,0x3a,0x20,0x70,0x61,0x63,0x6b,0x6f,0x66,0x66,0x73,
0x65,0x74,0x28,0x63,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x34,0x20,0x5f,0x31,0x34,0x5f,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,
0x73,0x20,0x3a,0x20,0x70,0x61,0x63,0x6b,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x63,
0x34,0x29,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x67,0x6c,0x5f,0x46,0x72,0x61,0x67,0x44,0x65,0x70,
0x74,0x68,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x33,0x20,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,
0x6f,0x78,0x79,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x33,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,
0x64,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,
0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,
0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,
0x65,0x6e,0x67,0x74,0x68,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,0x0a,0x73,0x74,
0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x6f,0x75,0x74,0x5f,
0x6b,0x69,0x6e,0x64,0x3b,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,
0x63,0x74,0x20,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x49,
0x6e,0x70,0x75,0x74,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x73,0x61,0x6d,0x70,0x6c,
0x65,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,
0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x3a,0x20,0x54,0x45,0x58,
0x43,0x4f,0x4f,0x52,0x44,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6e,0x6f,0x69,0x6e,
0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x33,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x3a,0x20,0x54,0x45,
0x58,0x43,0x4f,0x4f,0x52,0x44,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6e,0x6f,0x69,
0x6e,0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,
0x20,0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,0x32,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x6e,0x6f,0x69,0x6e,0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,
0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,
0x20,0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,0x33,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x6e,0x6f,0x69,0x6e,0x74,0x65,0x72,0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,
0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,
0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,
0x52,0x44,0x34,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6e,0x6f,0x69,0x6e,0x74,0x65,0x72,
0x70,0x6f,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,
0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3a,0x20,0x54,0x45,0x58,0x43,0x4f,0x4f,0x52,0x44,
0x35,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x53,0x50,
0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,
0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x6f,0x75,
0x74,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3a,0x20,0x53,0x56,0x5f,0x54,0x61,0x72,0x67,
0x65,0x74,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x67,
0x6c,0x5f,0x46,0x72,0x61,0x67,0x44,0x65,0x70,0x74,0x68,0x20,0x3a,0x20,0x53,0x56,
0x5f,0x44,0x65,0x70,0x74,0x68,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x76,0x6f,0x69,0x64,
0x20,0x66,0x72,0x61,0x67,0x5f,0x6d,0x61,0x69,0x6e,0x28,0x29,0x0a,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x32,0x37,0x20,0x3d,0x20,
0x6e,0x6f,0x72,0x6d,0x61,0x6c,0x69,0x7a,0x65,0x28,0x76,0x5f,0x77,0x6f,0x72,0x6c,
0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x2d,0x20,0x5f,0x31,
0x34,0x5f,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x33,
0x38,0x20,0x3d,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,
0x6c,0x64,0x20,0x2a,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,
0x74,0x68,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,
0x33,0x39,0x20,0x3d,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x2d,0x20,
0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,
0x5f,0x34,0x35,0x20,0x3d,0x20,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x2b,
0x20,0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,
0x20,0x5f,0x34,0x39,0x20,0x3d,0x20,0x5f,0x34,0x35,0x20,0x2d,0x20,0x5f,0x33,0x39,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x35,0x33,
0x20,0x3d,0x20,0x5f,0x31,0x34,0x5f,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,
0x73,0x2e,0x78,0x79,0x7a,0x20,0x2d,0x20,0x5f,0x33,0x39,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x35,0x38,0x20,0x3d,0x20,0x64,0x6f,0x74,
0x28,0x5f,0x34,0x39,0x2c,0x20,0x5f,0x34,0x39,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x36,0x32,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,
0x5f,0x34,0x39,0x2c,0x20,0x5f,0x32,0x37,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x5f,0x36,0x36,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,
0x34,0x39,0x2c,0x20,0x5f,0x35,0x33,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x5f,0x37,0x34,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x35,
0x33,0x2c,0x20,0x5f,0x35,0x33,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x5f,0x38,0x30,0x20,0x3d,0x20,0x5f,0x35,0x38,0x20,0x2d,0x20,0x28,
0x5f,0x36,0x32,0x20,0x2a,0x20,0x5f,0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x38,0x38,0x20,0x3d,0x20,0x28,0x5f,0x35,0x38,
0x20,0x2a,0x20,0x64,0x6f,0x74,0x28,0x5f,0x32,0x37,0x2c,0x20,0x5f,0x35,0x33,0x29,
0x29,0x20,0x2d,0x20,0x28,0x5f,0x36,0x36,0x20,0x2a,0x20,0x5f,0x36,0x32,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x30,0x30,0x20,
0x3d,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x20,0x2a,0x20,0x76,0x5f,0x72,
0x61,0x64,0x69,0x75,0x73,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x5f,0x31,0x31,0x31,0x20,0x3d,0x20,0x28,0x5f,0x38,0x38,0x20,0x2a,0x20,0x5f,
0x38,0x38,0x29,0x20,0x2d,0x20,0x28,0x5f,0x38,0x30,0x20,0x2a,0x20,0x28,0x28,0x28,
0x5f,0x35,0x38,0x20,0x2a,0x20,0x5f,0x37,0x34,0x29,0x20,0x2d,0x20,0x28,0x5f,0x36,
0x36,0x20,0x2a,0x20,0x5f,0x36,0x36,0x29,0x29,0x20,0x2d,0x20,0x28,0x5f,0x31,0x30,
0x30,0x20,0x2a,0x20,0x5f,0x35,0x38,0x29,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x74,0x20,0x3d,0x20,0x2d,0x31,0x2e,0x30,0x66,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x28,0x5f,0x31,0x31,0x31,0x20,0x3e,
0x3d,0x20,0x30,0x2e,0x30,0x66,0x29,0x20,0x26,0x26,0x20,0x28,0x5f,0x38,0x30,0x20,
0x3e,0x20,0x39,0x2e,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x33,0x39,0x32,0x32,0x35,
0x32,0x39,0x30,0x32,0x39,0x30,0x37,0x37,0x38,0x35,0x30,0x32,0x38,0x32,0x31,0x39,
0x32,0x32,0x33,0x65,0x2d,0x30,0x39,0x66,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,
0x31,0x33,0x31,0x20,0x3d,0x20,0x28,0x28,0x2d,0x5f,0x38,0x38,0x29,0x20,0x2d,0x20,
0x73,0x71,0x72,0x74,0x28,0x5f,0x31,0x31,0x31,0x29,0x29,0x20,0x2f,0x20,0x5f,0x38,
0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x5f,0x31,0x33,0x37,0x20,0x3d,0x20,0x5f,0x36,0x36,0x20,0x2b,0x20,0x28,0x5f,
0x31,0x33,0x31,0x20,0x2a,0x20,0x5f,0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x28,0x28,0x5f,0x31,0x33,0x31,0x20,0x3e,
0x20,0x30,0x2e,0x30,0x66,0x29,0x20,0x26,0x26,0x20,0x28,0x5f,0x31,0x33,0x37,0x20,
0x3e,0x20,0x30,0x2e,0x30,0x66,0x29,0x29,0x20,0x26,0x26,0x20,0x28,0x5f,0x31,0x33,
0x37,0x20,0x3c,0x20,0x5f,0x35,0x38,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x74,0x20,0x3d,0x20,0x5f,0x31,0x33,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x5f,0x31,0x35,0x37,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,
0x35,0x33,0x2c,0x20,0x5f,0x32,0x37,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x5f,0x31,0x37,0x31,0x20,0x3d,0x20,0x28,0x5f,0x31,0x35,0x37,
0x20,0x2a,0x20,0x5f,0x31,0x35,0x37,0x29,0x20,0x2d,0x20,0x28,0x5f,0x37,0x34,0x20,
0x2d,0x20,0x5f,0x31,0x30,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,
0x28,0x5f,0x31,0x37,0x31,0x20,0x3e,0x3d,0x20,0x30,0x2e,0x30,0x66,0x29,0x0a,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x5f,0x31,0x38,0x31,0x20,0x3d,0x20,0x28,0x2d,0x5f,0x31,0x35,0x37,
0x29,0x20,0x2d,0x20,0x73,0x71,0x72,0x74,0x28,0x5f,0x31,0x37,0x31,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x31,0x38,
0x33,0x20,0x3d,0x20,0x5f,0x31,0x38,0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,0x66,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x31,
0x39,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,
0x5f,0x31,0x38,0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x32,
0x20,0x3d,0x20,0x28,0x74,0x20,0x3c,0x20,0x30,0x2e,0x30,0x66,0x29,0x20,0x7c,0x7c,
0x20,0x28,0x5f,0x31,0x38,0x31,0x20,0x3c,0x20,0x74,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,
0x6c,0x73,0x65,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x32,0x20,0x3d,
0x20,0x5f,0x31,0x38,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x31,0x39,
0x32,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x64,0x6f,0x74,
0x28,0x28,0x5f,0x31,0x34,0x5f,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,
0x2e,0x78,0x79,0x7a,0x20,0x2b,0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x5f,0x31,
0x38,0x31,0x29,0x29,0x20,0x2d,0x20,0x5f,0x33,0x39,0x2c,0x20,0x76,0x5f,0x61,0x78,
0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x29,0x20,0x3c,0x3d,0x20,0x30,
0x2e,0x30,0x66,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x74,0x20,0x3d,0x20,0x5f,0x31,0x38,0x31,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x32,0x31,0x33,0x20,0x3d,0x20,0x5f,0x31,0x34,
0x5f,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,0x20,
0x2d,0x20,0x5f,0x34,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x5f,0x32,0x31,0x37,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x32,0x31,0x33,
0x2c,0x20,0x5f,0x32,0x37,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x5f,0x32,0x33,0x31,0x20,0x3d,0x20,0x28,0x5f,0x32,0x31,0x37,0x20,0x2a,
0x20,0x5f,0x32,0x31,0x37,0x29,0x20,0x2d,0x20,0x28,0x64,0x6f,0x74,0x28,0x5f,0x32,
0x31,0x33,0x2c,0x20,0x5f,0x32,0x31,0x33,0x29,0x20,0x2d,0x20,0x5f,0x31,0x30,0x30,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x33,0x31,0x20,
0x3e,0x3d,0x20,0x30,0x2e,0x30,0x66,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x32,0x34,
0x31,0x20,0x3d,0x20,0x28,0x2d,0x5f,0x32,0x31,0x37,0x29,0x20,0x2d,0x20,0x73,0x71,
0x72,0x74,0x28,0x5f,0x32,0x33,0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x32,0x34,0x33,0x20,0x3d,0x20,0x5f,0x32,
0x34,0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,0x66,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x32,0x35,0x32,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x34,0x33,0x29,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x32,0x35,0x32,0x20,0x3d,0x20,0x28,0x74,0x20,
0x3c,0x20,0x30,0x2e,0x30,0x66,0x29,0x20,0x7c,0x7c,0x20,0x28,0x5f,0x32,0x34,0x31,
0x20,0x3c,0x20,0x74,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x6c,0x73,0x65,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x5f,0x32,0x35,0x32,0x20,0x3d,0x20,0x5f,0x32,0x34,0x33,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x35,0x32,0x29,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x64,0x6f,0x74,0x28,0x28,0x5f,0x31,0x34,0x5f,
0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,0x20,0x2b,
0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x5f,0x32,0x34,0x31,0x29,0x29,0x20,0x2d,
0x20,0x5f,0x34,0x35,0x2c,0x20,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,
0x6f,0x72,0x6c,0x64,0x29,0x20,0x3e,0x3d,0x20,0x30,0x2e,0x30,0x66,0x29,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x74,0x20,0x3d,
0x20,0x5f,0x32,0x34,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x74,0x20,0x3c,
0x20,0x30,0x2e,0x30,0x66,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x64,0x69,0x73,0x63,0x61,0x72,0x64,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,
0x32,0x39,0x33,0x20,0x3d,0x20,0x6d,0x75,0x6c,0x28,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x28,0x5f,0x31,0x34,0x5f,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,
0x78,0x79,0x7a,0x20,0x2b,0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x74,0x29,0x2c,
0x20,0x31,0x2e,0x30,0x66,0x29,0x2c,0x20,0x5f,0x31,0x34,0x5f,0x76,0x69,0x65,0x77,
0x5f,0x70,0x72,0x6f,0x6a,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x67,0x6c,0x5f,0x46,
0x72,0x61,0x67,0x44,0x65,0x70,0x74,0x68,0x20,0x3d,0x20,0x5f,0x32,0x39,0x33,0x2e,
0x7a,0x20,0x2f,0x20,0x5f,0x32,0x39,0x33,0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x6f,0x75,0x74,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3d,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x34,0x28,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x2a,0x20,0x30,0x2e,0x35,0x66,0x2c,
0x20,0x30,0x2e,0x30,0x66,0x2c,0x20,0x30,0x2e,0x30,0x66,0x2c,0x20,0x31,0x2e,0x30,
0x66,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,
0x73,0x73,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x20,0x6d,0x61,0x69,0x6e,0x28,0x53,
0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x49,0x6e,0x70,0x75,0x74,
0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x29,0x0a,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,
0x70,0x72,0x6f,0x78,0x79,0x20,0x3d,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,
0x70,0x75,0x74,0x2e,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,
0x70,0x72,0x6f,0x78,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x61,0x78,0x69,
0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x3d,0x20,0x73,0x74,0x61,0x67,
0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x2e,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,
0x5f,0x77,0x6f,0x72,0x6c,0x64,0x3b,0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x63,0x65,
0x6e,0x74,0x65,0x72,0x20,0x3d,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,
0x75,0x74,0x2e,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x20,0x3d,
0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x2e,0x76,0x5f,0x68,
0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x20,0x3d,0x20,0x73,0x74,0x61,0x67,0x65,
0x5f,0x69,0x6e,0x70,0x75,0x74,0x2e,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3d,0x20,0x73,0x74,
0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x2e,0x76,0x5f,0x6b,0x69,0x6e,0x64,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x72,0x61,0x67,0x5f,0x6d,0x61,0x69,0x6e,0x28,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,
0x73,0x73,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,
0x6f,0x75,0x74,0x70,0x75,0x74,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x74,0x61,0x67,
0x65,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x67,0x6c,0x5f,0x46,0x72,0x61,0x67,
0x44,0x65,0x70,0x74,0x68,0x20,0x3d,0x20,0x67,0x6c,0x5f,0x46,0x72,0x61,0x67,0x44,
0x65,0x70,0x74,0x68,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,
0x6f,0x75,0x74,0x70,0x75,0x74,0x2e,0x6f,0x75,0x74,0x5f,0x6b,0x69,0x6e,0x64,0x20,
0x3d,0x20,0x6f,0x75,0x74,0x5f,0x6b,0x69,0x6e,0x64,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x6f,0x75,0x74,
0x70,0x75,0x74,0x3b,0x0a,0x7d,0x0a,0x00,
};
/*
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct instance
{
float4 xform_row0;
float4 xform_row1;
float4 xform_row2;
float4 params;
};
struct instances
{
instance items[1];
};
struct ub_frame
{
float4x4 view_proj;
};
struct main0_out
{
float3 v_world_pos_proxy [[user(locn0)]];
float3 v_center [[user(locn1)]];
float v_half_length [[user(locn2)]];
float v_radius [[user(locn3)]];
float3 v_axis_x_world [[user(locn4)]];
float v_kind [[user(locn5)]];
float4 gl_Position [[position]];
};
struct main0_in
{
float3 in_pos [[attribute(0)]];
};
vertex main0_out main0(main0_in in [[stage_in]], constant ub_frame& _128 [[buffer(0)]], const device instances& _15 [[buffer(8)]], uint gl_InstanceIndex [[instance_id]])
{
main0_out out = {};
float3 _48 = float3(_15.items[int(gl_InstanceIndex)].xform_row0.w, _15.items[int(gl_InstanceIndex)].xform_row1.w, _15.items[int(gl_InstanceIndex)].xform_row2.w);
float3 _80 = float3((in.in_pos.x * 2.0) * (_15.items[int(gl_InstanceIndex)].params.x + _15.items[int(gl_InstanceIndex)].params.y), (in.in_pos.y * 2.0) * _15.items[int(gl_InstanceIndex)].params.y, (in.in_pos.z * 2.0) * _15.items[int(gl_InstanceIndex)].params.y);
float3 _99 = _48 + float3(dot(_15.items[int(gl_InstanceIndex)].xform_row0.xyz, _80), dot(_15.items[int(gl_InstanceIndex)].xform_row1.xyz, _80), dot(_15.items[int(gl_InstanceIndex)].xform_row2.xyz, _80));
out.v_world_pos_proxy = _99;
out.v_center = _48;
out.v_half_length = _15.items[int(gl_InstanceIndex)].params.x;
out.v_radius = _15.items[int(gl_InstanceIndex)].params.y;
out.v_axis_x_world = float3(_15.items[int(gl_InstanceIndex)].xform_row0.x, _15.items[int(gl_InstanceIndex)].xform_row1.x, _15.items[int(gl_InstanceIndex)].xform_row2.x);
out.v_kind = _15.items[int(gl_InstanceIndex)].params.z;
out.gl_Position = _128.view_proj * float4(_99, 1.0);
return out;
}
*/
static const uint8_t mask_capsule_vs_source_metal_macos[1962] = {
0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x3c,0x6d,0x65,0x74,0x61,0x6c,0x5f,
0x73,0x74,0x64,0x6c,0x69,0x62,0x3e,0x0a,0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,
0x20,0x3c,0x73,0x69,0x6d,0x64,0x2f,0x73,0x69,0x6d,0x64,0x2e,0x68,0x3e,0x0a,0x0a,
0x75,0x73,0x69,0x6e,0x67,0x20,0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,0x20,
0x6d,0x65,0x74,0x61,0x6c,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x69,
0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x34,0x20,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x30,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x78,0x66,0x6f,0x72,
0x6d,0x5f,0x72,0x6f,0x77,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x34,0x20,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x70,0x61,0x72,0x61,0x6d,0x73,
0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x69,0x6e,0x73,
0x74,0x61,0x6e,0x63,0x65,0x73,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x73,
0x74,0x61,0x6e,0x63,0x65,0x20,0x69,0x74,0x65,0x6d,0x73,0x5b,0x31,0x5d,0x3b,0x0a,
0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x75,0x62,0x5f,0x66,0x72,
0x61,0x6d,0x65,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x78,0x34,0x20,0x76,0x69,0x65,0x77,0x5f,0x70,0x72,0x6f,0x6a,0x3b,0x0a,0x7d,0x3b,
0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x5f,0x6f,
0x75,0x74,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,
0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,
0x79,0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x30,0x29,0x5d,
0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,
0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,
0x63,0x6e,0x31,0x29,0x5d,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x20,
0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x32,0x29,0x5d,0x5d,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,
0x69,0x75,0x73,0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x33,
0x29,0x5d,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,
0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x5b,
0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x34,0x29,0x5d,0x5d,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x6b,0x69,0x6e,0x64,
0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x35,0x29,0x5d,0x5d,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x67,0x6c,0x5f,
0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x20,0x5b,0x5b,0x70,0x6f,0x73,0x69,0x74,
0x69,0x6f,0x6e,0x5d,0x5d,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,
0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x5f,0x69,0x6e,0x0a,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x69,0x6e,0x5f,0x70,0x6f,0x73,0x20,0x5b,
0x5b,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x28,0x30,0x29,0x5d,0x5d,0x3b,
0x0a,0x7d,0x3b,0x0a,0x0a,0x76,0x65,0x72,0x74,0x65,0x78,0x20,0x6d,0x61,0x69,0x6e,
0x30,0x5f,0x6f,0x75,0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x28,0x6d,0x61,0x69,0x6e,
0x30,0x5f,0x69,0x6e,0x20,0x69,0x6e,0x20,0x5b,0x5b,0x73,0x74,0x61,0x67,0x65,0x5f,
0x69,0x6e,0x5d,0x5d,0x2c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,
0x62,0x5f,0x66,0x72,0x61,0x6d,0x65,0x26,0x20,0x5f,0x31,0x32,0x38,0x20,0x5b,0x5b,
0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x30,0x29,0x5d,0x5d,0x2c,0x20,0x63,0x6f,0x6e,
0x73,0x74,0x20,0x64,0x65,0x76,0x69,0x63,0x65,0x20,0x69,0x6e,0x73,0x74,0x61,0x6e,
0x63,0x65,0x73,0x26,0x20,0x5f,0x31,0x35,0x20,0x5b,0x5b,0x62,0x75,0x66,0x66,0x65,
0x72,0x28,0x38,0x29,0x5d,0x5d,0x2c,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x5f,
0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x20,0x5b,0x5b,
0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x5f,0x69,0x64,0x5d,0x5d,0x29,0x0a,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x6d,0x61,0x69,0x6e,0x30,0x5f,0x6f,0x75,0x74,0x20,0x6f,
0x75,0x74,0x20,0x3d,0x20,0x7b,0x7d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x33,0x20,0x5f,0x34,0x38,0x20,0x3d,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,
0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,
0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,
0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x30,0x2e,0x77,0x2c,0x20,
0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,
0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,
0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x77,0x2c,0x20,0x5f,
0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,
0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,
0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x77,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x38,0x30,0x20,0x3d,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x33,0x28,0x28,0x69,0x6e,0x2e,0x69,0x6e,0x5f,0x70,0x6f,
0x73,0x2e,0x78,0x20,0x2a,0x20,0x32,0x2e,0x30,0x29,0x20,0x2a,0x20,0x28,0x5f,0x31,
0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,
0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x70,
0x61,0x72,0x61,0x6d,0x73,0x2e,0x78,0x20,0x2b,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,
0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,
0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,
0x73,0x2e,0x79,0x29,0x2c,0x20,0x28,0x69,0x6e,0x2e,0x69,0x6e,0x5f,0x70,0x6f,0x73,
0x2e,0x79,0x20,0x2a,0x20,0x32,0x2e,0x30,0x29,0x20,0x2a,0x20,0x5f,0x31,0x35,0x2e,
0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,
0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x70,0x61,0x72,
0x61,0x6d,0x73,0x2e,0x79,0x2c,0x20,0x28,0x69,0x6e,0x2e,0x69,0x6e,0x5f,0x70,0x6f,
0x73,0x2e,0x7a,0x20,0x2a,0x20,0x32,0x2e,0x30,0x29,0x20,0x2a,0x20,0x5f,0x31,0x35,
0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,
0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x70,0x61,
0x72,0x61,0x6d,0x73,0x2e,0x79,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x33,0x20,0x5f,0x39,0x39,0x20,0x3d,0x20,0x5f,0x34,0x38,0x20,0x2b,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x33,0x28,0x64,0x6f,0x74,0x28,0x5f,0x31,0x35,0x2e,0x69,
0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,
0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x78,0x66,0x6f,0x72,
0x6d,0x5f,0x72,0x6f,0x77,0x30,0x2e,0x78,0x79,0x7a,0x2c,0x20,0x5f,0x38,0x30,0x29,
0x2c,0x20,0x64,0x6f,0x74,0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,
0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,
0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,
0x31,0x2e,0x78,0x79,0x7a,0x2c,0x20,0x5f,0x38,0x30,0x29,0x2c,0x20,0x64,0x6f,0x74,
0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,
0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,
0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x78,0x79,0x7a,
0x2c,0x20,0x5f,0x38,0x30,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,
0x2e,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,
0x78,0x79,0x20,0x3d,0x20,0x5f,0x39,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,
0x74,0x2e,0x76,0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x3d,0x20,0x5f,0x34,0x38,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x2e,0x76,0x5f,0x68,0x61,0x6c,0x66,
0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x20,0x3d,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,
0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,
0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,
0x73,0x2e,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x2e,0x76,0x5f,0x72,
0x61,0x64,0x69,0x75,0x73,0x20,0x3d,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,
0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,
0x65,0x49,0x6e,0x64,0x65,0x78,0x29,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,
0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x2e,0x76,0x5f,0x61,0x78,0x69,
0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x3d,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x33,0x28,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,
0x28,0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,
0x78,0x29,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x30,0x2e,0x78,
0x2c,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,
0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,
0x29,0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x31,0x2e,0x78,0x2c,
0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,0x67,
0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,0x29,
0x5d,0x2e,0x78,0x66,0x6f,0x72,0x6d,0x5f,0x72,0x6f,0x77,0x32,0x2e,0x78,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x2e,0x76,0x5f,0x6b,0x69,0x6e,0x64,0x20,
0x3d,0x20,0x5f,0x31,0x35,0x2e,0x69,0x74,0x65,0x6d,0x73,0x5b,0x69,0x6e,0x74,0x28,
0x67,0x6c,0x5f,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x6e,0x64,0x65,0x78,
0x29,0x5d,0x2e,0x70,0x61,0x72,0x61,0x6d,0x73,0x2e,0x7a,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x6f,0x75,0x74,0x2e,0x67,0x6c,0x5f,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,
0x20,0x3d,0x20,0x5f,0x31,0x32,0x38,0x2e,0x76,0x69,0x65,0x77,0x5f,0x70,0x72,0x6f,
0x6a,0x20,0x2a,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x5f,0x39,0x39,0x2c,0x20,
0x31,0x2e,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,
0x20,0x6f,0x75,0x74,0x3b,0x0a,0x7d,0x0a,0x0a,0x00,
};
/*
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct ub_pass
{
float4x4 view_proj;
float4 camera_pos;
};
struct main0_out
{
float4 out_kind [[color(0)]];
float gl_FragDepth [[depth(any)]];
};
struct main0_in
{
float3 v_world_pos_proxy [[user(locn0), sample_perspective]];
float3 v_center [[user(locn1), flat]];
float v_half_length [[user(locn2), flat]];
float v_radius [[user(locn3), flat]];
float3 v_axis_x_world [[user(locn4), flat]];
float v_kind [[user(locn5), flat]];
};
fragment main0_out main0(main0_in in [[stage_in]], constant ub_pass& _14 [[buffer(1)]])
{
main0_out out = {};
float3 _27 = fast::normalize(in.v_world_pos_proxy - _14.camera_pos.xyz);
float3 _38 = in.v_axis_x_world * in.v_half_length;
float3 _39 = in.v_center - _38;
float3 _45 = in.v_center + _38;
float3 _49 = _45 - _39;
float3 _53 = _14.camera_pos.xyz - _39;
float _58 = dot(_49, _49);
float _62 = dot(_49, _27);
float _66 = dot(_49, _53);
float _74 = dot(_53, _53);
float _80 = _58 - (_62 * _62);
float _88 = (_58 * dot(_27, _53)) - (_66 * _62);
float _100 = in.v_radius * in.v_radius;
float _111 = (_88 * _88) - (_80 * (((_58 * _74) - (_66 * _66)) - (_100 * _58)));
float t = -1.0;
if ((_111 >= 0.0) && (_80 > 9.9999999392252902907785028219223e-09))
{
float _131 = ((-_88) - sqrt(_111)) / _80;
float _137 = _66 + (_131 * _62);
if (((_131 > 0.0) && (_137 > 0.0)) && (_137 < _58))
{
t = _131;
}
}
float _157 = dot(_53, _27);
float _171 = (_157 * _157) - (_74 - _100);
if (_171 >= 0.0)
{
float _181 = (-_157) - sqrt(_171);
bool _183 = _181 > 0.0;
bool _192;
if (_183)
{
_192 = (t < 0.0) || (_181 < t);
}
else
{
_192 = _183;
}
if (_192)
{
if (dot((_14.camera_pos.xyz + (_27 * _181)) - _39, in.v_axis_x_world) <= 0.0)
{
t = _181;
}
}
}
float3 _213 = _14.camera_pos.xyz - _45;
float _217 = dot(_213, _27);
float _231 = (_217 * _217) - (dot(_213, _213) - _100);
if (_231 >= 0.0)
{
float _241 = (-_217) - sqrt(_231);
bool _243 = _241 > 0.0;
bool _252;
if (_243)
{
_252 = (t < 0.0) || (_241 < t);
}
else
{
_252 = _243;
}
if (_252)
{
if (dot((_14.camera_pos.xyz + (_27 * _241)) - _45, in.v_axis_x_world) >= 0.0)
{
t = _241;
}
}
}
if (t < 0.0)
{
discard_fragment();
}
float4 _293 = _14.view_proj * float4(_14.camera_pos.xyz + (_27 * t), 1.0);
out.gl_FragDepth = _293.z / _293.w;
out.out_kind = float4(in.v_kind * 0.5, 0.0, 0.0, 1.0);
return out;
}
*/
static const uint8_t mask_capsule_fs_source_metal_macos[2940] = {
0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x3c,0x6d,0x65,0x74,0x61,0x6c,0x5f,
0x73,0x74,0x64,0x6c,0x69,0x62,0x3e,0x0a,0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,
0x20,0x3c,0x73,0x69,0x6d,0x64,0x2f,0x73,0x69,0x6d,0x64,0x2e,0x68,0x3e,0x0a,0x0a,
0x75,0x73,0x69,0x6e,0x67,0x20,0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,0x20,
0x6d,0x65,0x74,0x61,0x6c,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x75,
0x62,0x5f,0x70,0x61,0x73,0x73,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x34,0x78,0x34,0x20,0x76,0x69,0x65,0x77,0x5f,0x70,0x72,0x6f,0x6a,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x61,0x6d,0x65,
0x72,0x61,0x5f,0x70,0x6f,0x73,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,
0x63,0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x5f,0x6f,0x75,0x74,0x0a,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x6f,0x75,0x74,0x5f,0x6b,0x69,
0x6e,0x64,0x20,0x5b,0x5b,0x63,0x6f,0x6c,0x6f,0x72,0x28,0x30,0x29,0x5d,0x5d,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x67,0x6c,0x5f,0x46,0x72,
0x61,0x67,0x44,0x65,0x70,0x74,0x68,0x20,0x5b,0x5b,0x64,0x65,0x70,0x74,0x68,0x28,
0x61,0x6e,0x79,0x29,0x5d,0x5d,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,
0x63,0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x5f,0x69,0x6e,0x0a,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,
0x5f,0x70,0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x5b,0x5b,0x75,0x73,0x65,
0x72,0x28,0x6c,0x6f,0x63,0x6e,0x30,0x29,0x2c,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,
0x5f,0x70,0x65,0x72,0x73,0x70,0x65,0x63,0x74,0x69,0x76,0x65,0x5d,0x5d,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,0x5f,0x63,0x65,0x6e,
0x74,0x65,0x72,0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x31,
0x29,0x2c,0x20,0x66,0x6c,0x61,0x74,0x5d,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,0x65,0x6e,0x67,
0x74,0x68,0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x32,0x29,
0x2c,0x20,0x66,0x6c,0x61,0x74,0x5d,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x76,0x5f,0x72,0x61,0x64,0x69,0x75,0x73,0x20,0x5b,0x5b,0x75,
0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x33,0x29,0x2c,0x20,0x66,0x6c,0x61,0x74,
0x5d,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x76,
0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x20,0x5b,0x5b,
0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,0x6e,0x34,0x29,0x2c,0x20,0x66,0x6c,0x61,
0x74,0x5d,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x76,
0x5f,0x6b,0x69,0x6e,0x64,0x20,0x5b,0x5b,0x75,0x73,0x65,0x72,0x28,0x6c,0x6f,0x63,
0x6e,0x35,0x29,0x2c,0x20,0x66,0x6c,0x61,0x74,0x5d,0x5d,0x3b,0x0a,0x7d,0x3b,0x0a,
0x0a,0x66,0x72,0x61,0x67,0x6d,0x65,0x6e,0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x5f,
0x6f,0x75,0x74,0x20,0x6d,0x61,0x69,0x6e,0x30,0x28,0x6d,0x61,0x69,0x6e,0x30,0x5f,
0x69,0x6e,0x20,0x69,0x6e,0x20,0x5b,0x5b,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,
0x5d,0x5d,0x2c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x62,0x5f,
0x70,0x61,0x73,0x73,0x26,0x20,0x5f,0x31,0x34,0x20,0x5b,0x5b,0x62,0x75,0x66,0x66,
0x65,0x72,0x28,0x31,0x29,0x5d,0x5d,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6d,
0x61,0x69,0x6e,0x30,0x5f,0x6f,0x75,0x74,0x20,0x6f,0x75,0x74,0x20,0x3d,0x20,0x7b,
0x7d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x32,
0x37,0x20,0x3d,0x20,0x66,0x61,0x73,0x74,0x3a,0x3a,0x6e,0x6f,0x72,0x6d,0x61,0x6c,
0x69,0x7a,0x65,0x28,0x69,0x6e,0x2e,0x76,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x5f,0x70,
0x6f,0x73,0x5f,0x70,0x72,0x6f,0x78,0x79,0x20,0x2d,0x20,0x5f,0x31,0x34,0x2e,0x63,
0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x33,0x38,0x20,0x3d,
0x20,0x69,0x6e,0x2e,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,
0x6c,0x64,0x20,0x2a,0x20,0x69,0x6e,0x2e,0x76,0x5f,0x68,0x61,0x6c,0x66,0x5f,0x6c,
0x65,0x6e,0x67,0x74,0x68,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x33,0x20,0x5f,0x33,0x39,0x20,0x3d,0x20,0x69,0x6e,0x2e,0x76,0x5f,0x63,0x65,0x6e,
0x74,0x65,0x72,0x20,0x2d,0x20,0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x34,0x35,0x20,0x3d,0x20,0x69,0x6e,0x2e,0x76,
0x5f,0x63,0x65,0x6e,0x74,0x65,0x72,0x20,0x2b,0x20,0x5f,0x33,0x38,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x34,0x39,0x20,0x3d,0x20,
0x5f,0x34,0x35,0x20,0x2d,0x20,0x5f,0x33,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,0x35,0x33,0x20,0x3d,0x20,0x5f,0x31,0x34,0x2e,
0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,0x20,0x2d,
0x20,0x5f,0x33,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x5f,0x35,0x38,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x34,0x39,0x2c,0x20,0x5f,
0x34,0x39,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,
0x36,0x32,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x34,0x39,0x2c,0x20,0x5f,0x32,
0x37,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x36,
0x36,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x34,0x39,0x2c,0x20,0x5f,0x35,0x33,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x37,0x34,
0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x35,0x33,0x2c,0x20,0x5f,0x35,0x33,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x38,0x30,0x20,
0x3d,0x20,0x5f,0x35,0x38,0x20,0x2d,0x20,0x28,0x5f,0x36,0x32,0x20,0x2a,0x20,0x5f,
0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,
0x38,0x38,0x20,0x3d,0x20,0x28,0x5f,0x35,0x38,0x20,0x2a,0x20,0x64,0x6f,0x74,0x28,
0x5f,0x32,0x37,0x2c,0x20,0x5f,0x35,0x33,0x29,0x29,0x20,0x2d,0x20,0x28,0x5f,0x36,
0x36,0x20,0x2a,0x20,0x5f,0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x5f,0x31,0x30,0x30,0x20,0x3d,0x20,0x69,0x6e,0x2e,0x76,0x5f,
0x72,0x61,0x64,0x69,0x75,0x73,0x20,0x2a,0x20,0x69,0x6e,0x2e,0x76,0x5f,0x72,0x61,
0x64,0x69,0x75,0x73,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x5f,0x31,0x31,0x31,0x20,0x3d,0x20,0x28,0x5f,0x38,0x38,0x20,0x2a,0x20,0x5f,0x38,
0x38,0x29,0x20,0x2d,0x20,0x28,0x5f,0x38,0x30,0x20,0x2a,0x20,0x28,0x28,0x28,0x5f,
0x35,0x38,0x20,0x2a,0x20,0x5f,0x37,0x34,0x29,0x20,0x2d,0x20,0x28,0x5f,0x36,0x36,
0x20,0x2a,0x20,0x5f,0x36,0x36,0x29,0x29,0x20,0x2d,0x20,0x28,0x5f,0x31,0x30,0x30,
0x20,0x2a,0x20,0x5f,0x35,0x38,0x29,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x74,0x20,0x3d,0x20,0x2d,0x31,0x2e,0x30,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x28,0x5f,0x31,0x31,0x31,0x20,0x3e,0x3d,0x20,
0x30,0x2e,0x30,0x29,0x20,0x26,0x26,0x20,0x28,0x5f,0x38,0x30,0x20,0x3e,0x20,0x39,
0x2e,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x33,0x39,0x32,0x32,0x35,0x32,0x39,0x30,
0x32,0x39,0x30,0x37,0x37,0x38,0x35,0x30,0x32,0x38,0x32,0x31,0x39,0x32,0x32,0x33,
0x65,0x2d,0x30,0x39,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x33,0x31,0x20,
0x3d,0x20,0x28,0x28,0x2d,0x5f,0x38,0x38,0x29,0x20,0x2d,0x20,0x73,0x71,0x72,0x74,
0x28,0x5f,0x31,0x31,0x31,0x29,0x29,0x20,0x2f,0x20,0x5f,0x38,0x30,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x33,
0x37,0x20,0x3d,0x20,0x5f,0x36,0x36,0x20,0x2b,0x20,0x28,0x5f,0x31,0x33,0x31,0x20,
0x2a,0x20,0x5f,0x36,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x69,0x66,0x20,0x28,0x28,0x28,0x5f,0x31,0x33,0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,
0x29,0x20,0x26,0x26,0x20,0x28,0x5f,0x31,0x33,0x37,0x20,0x3e,0x20,0x30,0x2e,0x30,
0x29,0x29,0x20,0x26,0x26,0x20,0x28,0x5f,0x31,0x33,0x37,0x20,0x3c,0x20,0x5f,0x35,
0x38,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x74,0x20,0x3d,0x20,0x5f,0x31,
0x33,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,
0x35,0x37,0x20,0x3d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x35,0x33,0x2c,0x20,0x5f,0x32,
0x37,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,
0x37,0x31,0x20,0x3d,0x20,0x28,0x5f,0x31,0x35,0x37,0x20,0x2a,0x20,0x5f,0x31,0x35,
0x37,0x29,0x20,0x2d,0x20,0x28,0x5f,0x37,0x34,0x20,0x2d,0x20,0x5f,0x31,0x30,0x30,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x31,0x37,0x31,0x20,
0x3e,0x3d,0x20,0x30,0x2e,0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x38,0x31,
0x20,0x3d,0x20,0x28,0x2d,0x5f,0x31,0x35,0x37,0x29,0x20,0x2d,0x20,0x73,0x71,0x72,
0x74,0x28,0x5f,0x31,0x37,0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x31,0x38,0x33,0x20,0x3d,0x20,0x5f,0x31,0x38,
0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x31,0x39,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x31,0x38,0x33,0x29,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x32,0x20,0x3d,0x20,0x28,0x74,0x20,0x3c,0x20,
0x30,0x2e,0x30,0x29,0x20,0x7c,0x7c,0x20,0x28,0x5f,0x31,0x38,0x31,0x20,0x3c,0x20,
0x74,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x6c,0x73,0x65,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x5f,0x31,0x39,0x32,0x20,0x3d,0x20,0x5f,0x31,0x38,0x33,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x69,0x66,0x20,0x28,0x5f,0x31,0x39,0x32,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x69,0x66,0x20,0x28,0x64,0x6f,0x74,0x28,0x28,0x5f,0x31,0x34,0x2e,0x63,0x61,0x6d,
0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,0x20,0x2b,0x20,0x28,0x5f,
0x32,0x37,0x20,0x2a,0x20,0x5f,0x31,0x38,0x31,0x29,0x29,0x20,0x2d,0x20,0x5f,0x33,
0x39,0x2c,0x20,0x69,0x6e,0x2e,0x76,0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,
0x6f,0x72,0x6c,0x64,0x29,0x20,0x3c,0x3d,0x20,0x30,0x2e,0x30,0x29,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x74,0x20,0x3d,0x20,
0x5f,0x31,0x38,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x5f,
0x32,0x31,0x33,0x20,0x3d,0x20,0x5f,0x31,0x34,0x2e,0x63,0x61,0x6d,0x65,0x72,0x61,
0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,0x7a,0x20,0x2d,0x20,0x5f,0x34,0x35,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x32,0x31,0x37,0x20,0x3d,
0x20,0x64,0x6f,0x74,0x28,0x5f,0x32,0x31,0x33,0x2c,0x20,0x5f,0x32,0x37,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x32,0x33,0x31,0x20,
0x3d,0x20,0x28,0x5f,0x32,0x31,0x37,0x20,0x2a,0x20,0x5f,0x32,0x31,0x37,0x29,0x20,
0x2d,0x20,0x28,0x64,0x6f,0x74,0x28,0x5f,0x32,0x31,0x33,0x2c,0x20,0x5f,0x32,0x31,
0x33,0x29,0x20,0x2d,0x20,0x5f,0x31,0x30,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x69,0x66,0x20,0x28,0x5f,0x32,0x33,0x31,0x20,0x3e,0x3d,0x20,0x30,0x2e,0x30,0x29,
0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x5f,0x32,0x34,0x31,0x20,0x3d,0x20,0x28,0x2d,0x5f,0x32,
0x31,0x37,0x29,0x20,0x2d,0x20,0x73,0x71,0x72,0x74,0x28,0x5f,0x32,0x33,0x31,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,
0x32,0x34,0x33,0x20,0x3d,0x20,0x5f,0x32,0x34,0x31,0x20,0x3e,0x20,0x30,0x2e,0x30,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,
0x32,0x35,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,
0x28,0x5f,0x32,0x34,0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x32,0x35,
0x32,0x20,0x3d,0x20,0x28,0x74,0x20,0x3c,0x20,0x30,0x2e,0x30,0x29,0x20,0x7c,0x7c,
0x20,0x28,0x5f,0x32,0x34,0x31,0x20,0x3c,0x20,0x74,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,
0x6c,0x73,0x65,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x32,0x35,0x32,0x20,0x3d,
0x20,0x5f,0x32,0x34,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x35,
0x32,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x64,0x6f,0x74,
0x28,0x28,0x5f,0x31,0x34,0x2e,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,
0x2e,0x78,0x79,0x7a,0x20,0x2b,0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x5f,0x32,
0x34,0x31,0x29,0x29,0x20,0x2d,0x20,0x5f,0x34,0x35,0x2c,0x20,0x69,0x6e,0x2e,0x76,
0x5f,0x61,0x78,0x69,0x73,0x5f,0x78,0x5f,0x77,0x6f,0x72,0x6c,0x64,0x29,0x20,0x3e,
0x3d,0x20,0x30,0x2e,0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x74,0x20,0x3d,0x20,0x5f,0x32,0x34,0x31,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,
0x20,0x69,0x66,0x20,0x28,0x74,0x20,0x3c,0x20,0x30,0x2e,0x30,0x29,0x0a,0x20,0x20,
0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x64,0x69,0x73,0x63,
0x61,0x72,0x64,0x5f,0x66,0x72,0x61,0x67,0x6d,0x65,0x6e,0x74,0x28,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x20,0x5f,0x32,0x39,0x33,0x20,0x3d,0x20,0x5f,0x31,0x34,0x2e,0x76,0x69,0x65,0x77,
0x5f,0x70,0x72,0x6f,0x6a,0x20,0x2a,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x5f,
0x31,0x34,0x2e,0x63,0x61,0x6d,0x65,0x72,0x61,0x5f,0x70,0x6f,0x73,0x2e,0x78,0x79,
0x7a,0x20,0x2b,0x20,0x28,0x5f,0x32,0x37,0x20,0x2a,0x20,0x74,0x29,0x2c,0x20,0x31,
0x2e,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x2e,0x67,0x6c,0x5f,
0x46,0x72,0x61,0x67,0x44,0x65,0x70,0x74,0x68,0x20,0x3d,0x20,0x5f,0x32,0x39,0x33,
0x2e,0x7a,0x20,0x2f,0x20,0x5f,0x32,0x39,0x33,0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x6f,0x75,0x74,0x2e,0x6f,0x75,0x74,0x5f,0x6b,0x69,0x6e,0x64,0x20,0x3d,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x69,0x6e,0x2e,0x76,0x5f,0x6b,0x69,0x6e,0x64,
0x20,0x2a,0x20,0x30,0x2e,0x35,0x2c,0x20,0x30,0x2e,0x30,0x2c,0x20,0x30,0x2e,0x30,
0x2c,0x20,0x31,0x2e,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,
0x72,0x6e,0x20,0x6f,0x75,0x74,0x3b,0x0a,0x7d,0x0a,0x0a,0x00,
};
static inline const sg_shader_desc* mask_capsule_prog_shader_desc(sg_backend backend) {
if (backend == SG_BACKEND_GLCORE) {
static sg_shader_desc desc;
static bool valid;
if (!valid) {
valid = true;
desc.vertex_func.source = (const char*)mask_capsule_vs_source_glsl430;
desc.vertex_func.entry = "main";
desc.fragment_func.source = (const char*)mask_capsule_fs_source_glsl430;
desc.fragment_func.entry = "main";
desc.attrs[0].base_type = SG_SHADERATTRBASETYPE_FLOAT;
desc.attrs[0].glsl_name = "in_pos";
desc.uniform_blocks[0].stage = SG_SHADERSTAGE_VERTEX;
desc.uniform_blocks[0].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[0].size = 64;
desc.uniform_blocks[0].glsl_uniforms[0].type = SG_UNIFORMTYPE_FLOAT4;
desc.uniform_blocks[0].glsl_uniforms[0].array_count = 4;
desc.uniform_blocks[0].glsl_uniforms[0].glsl_name = "ub_frame";
desc.uniform_blocks[1].stage = SG_SHADERSTAGE_FRAGMENT;
desc.uniform_blocks[1].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[1].size = 80;
desc.uniform_blocks[1].glsl_uniforms[0].type = SG_UNIFORMTYPE_FLOAT4;
desc.uniform_blocks[1].glsl_uniforms[0].array_count = 5;
desc.uniform_blocks[1].glsl_uniforms[0].glsl_name = "ub_pass";
desc.views[0].storage_buffer.stage = SG_SHADERSTAGE_VERTEX;
desc.views[0].storage_buffer.readonly = true;
desc.views[0].storage_buffer.glsl_binding_n = 0;
desc.label = "mask_capsule_prog_shader";
}
return &desc;
}
if (backend == SG_BACKEND_D3D11) {
static sg_shader_desc desc;
static bool valid;
if (!valid) {
valid = true;
desc.vertex_func.source = (const char*)mask_capsule_vs_source_hlsl5;
desc.vertex_func.d3d11_target = "vs_5_0";
desc.vertex_func.entry = "main";
desc.fragment_func.source = (const char*)mask_capsule_fs_source_hlsl5;
desc.fragment_func.d3d11_target = "ps_5_0";
desc.fragment_func.entry = "main";
desc.attrs[0].base_type = SG_SHADERATTRBASETYPE_FLOAT;
desc.attrs[0].hlsl_sem_name = "TEXCOORD";
desc.attrs[0].hlsl_sem_index = 0;
desc.uniform_blocks[0].stage = SG_SHADERSTAGE_VERTEX;
desc.uniform_blocks[0].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[0].size = 64;
desc.uniform_blocks[0].hlsl_register_b_n = 0;
desc.uniform_blocks[1].stage = SG_SHADERSTAGE_FRAGMENT;
desc.uniform_blocks[1].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[1].size = 80;
desc.uniform_blocks[1].hlsl_register_b_n = 1;
desc.views[0].storage_buffer.stage = SG_SHADERSTAGE_VERTEX;
desc.views[0].storage_buffer.readonly = true;
desc.views[0].storage_buffer.hlsl_register_t_n = 0;
desc.label = "mask_capsule_prog_shader";
}
return &desc;
}
if (backend == SG_BACKEND_METAL_MACOS) {
static sg_shader_desc desc;
static bool valid;
if (!valid) {
valid = true;
desc.vertex_func.source = (const char*)mask_capsule_vs_source_metal_macos;
desc.vertex_func.entry = "main0";
desc.fragment_func.source = (const char*)mask_capsule_fs_source_metal_macos;
desc.fragment_func.entry = "main0";
desc.attrs[0].base_type = SG_SHADERATTRBASETYPE_FLOAT;
desc.uniform_blocks[0].stage = SG_SHADERSTAGE_VERTEX;
desc.uniform_blocks[0].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[0].size = 64;
desc.uniform_blocks[0].msl_buffer_n = 0;
desc.uniform_blocks[1].stage = SG_SHADERSTAGE_FRAGMENT;
desc.uniform_blocks[1].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[1].size = 80;
desc.uniform_blocks[1].msl_buffer_n = 1;
desc.views[0].storage_buffer.stage = SG_SHADERSTAGE_VERTEX;
desc.views[0].storage_buffer.readonly = true;
desc.views[0].storage_buffer.msl_buffer_n = 8;
desc.label = "mask_capsule_prog_shader";
}
return &desc;
}
return 0;
}