Source code

Revision control

Copy as Markdown

Other Tools

// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// shaders/gen/CopyImageToBuffer.comp.00000001.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kCopyImageToBuffer_comp_00000001[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4d,0x68,0x9d,0x45,
0x14,0x86,0x67,0xbe,0xef,0xe6,0x26,0x31,0xb1,0x46,0xb4,0xb7,0xd6,0xd4,0xa4,0x26,
0xd0,0x2c,0x12,0x8a,0x8b,0x5b,0x11,0x6a,0xfd,0x49,0x41,0x5d,0x94,0xda,0x56,0x17,
0x82,0x0b,0xf1,0x07,0x44,0xa1,0x5d,0xa8,0x8b,0x2e,0x4a,0x0d,0x12,0x28,0xb8,0x70,
0x91,0x58,0x90,0xd6,0xfa,0x93,0xad,0x34,0xe9,0x5e,0x8d,0x52,0xb5,0x16,0x4b,0x5b,
0x5b,0x57,0x6a,0x51,0xcc,0x42,0x0d,0x88,0x58,0x31,0xda,0x44,0x6c,0x3c,0xef,0xcc,
0x33,0x72,0x6c,0x60,0xf2,0xcd,0x79,0xcf,0x39,0xef,0xf9,0x99,0x39,0x73,0xeb,0x6a,
0xb8,0x33,0x84,0x18,0x7a,0x42,0x57,0x58,0x17,0x43,0xfa,0xbb,0x31,0x54,0x41,0xdb,
0x9e,0xd0,0x4c,0xdf,0x07,0x77,0x3c,0xb2,0x63,0xf3,0x8b,0x2f,0x3d,0xb3,0xb9,0xbd,
0xe5,0x0e,0xe9,0xd7,0x84,0x3a,0xd9,0x49,0x77,0x83,0xd9,0x74,0xd8,0xb7,0x61,0x6b,
0xef,0x93,0xcf,0xed,0x13,0xde,0x6f,0xab,0xcf,0xf0,0x46,0xe2,0x0a,0xc6,0x9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,0xf8,0x01,0xde,
0xb0,0x1f,0xc0,0x74,0x26,0x8b,0x70,0x2c,0xa4,0x79,0xef,0x4a,0x1c,0x3f,0xfe,0xf7,
0x8e,0x67,0x2e,0xcd,0xb0,0x66,0xb5,0xc4,0xf8,0x09,0x1b,0xbd,0x6d,0x7b,0xe1,0xfc,
0x19,0xdc,0x73,0x2e,0x72,0xce,0xd2,0xb7,0x62,0x8e,0x7b,0x09,0xdb,0x85,0x74,0x8e,
0x1d,0x49,0xf7,0x0b,0x7a,0xcd,0x7c,0xb9,0x7b,0xbf,0x82,0x07,0x77,0x1f,0x7f,0x03,
0x8b,0xe9,0xce,0x65,0xec,0x32,0xb8,0xde,0xd1,0xcf,0xc0,0x7e,0xc7,0xff,0xb2,0xf3,
0xfd,0x03,0xdf,0xca,0xf9,0x2e,0x81,0xef,0x77,0xbe,0x7f,0xe2,0xbf,0xe4,0x7c,0xaf,
0xe0,0x5b,0x3b,0xdf,0x65,0xf0,0x83,0xce,0x77,0x05,0xff,0x65,0x77,0xd6,0xff,0x70,
0xd6,0x93,0xee,0xac,0xaf,0x82,0x17,0x9b,0x55,0x6c,0x0e,0x39,0x1b,0x15,0xb9,0x8a,
0x4d,0x7a,0xd7,0x63,0x7e,0xb7,0xfc,0xbc,0x56,0x31,0xe3,0x93,0xc4,0xaf,0x63,0xf6,
0x13,0x3e,0x01,0xd6,0x88,0x39,0x9e,0x74,0x85,0xab,0x03,0xae,0x11,0xc7,0xd5,0x8c,
0x19,0x2f,0x7e,0x9d,0x31,0xfb,0x36,0x63,0x7e,0x37,0xf4,0x9b,0x70,0x5d,0xcc,0xbf,
0x13,0x6d,0xf4,0xf7,0x58,0x47,0x84,0xad,0x5c,0xf3,0x8e,0xcd,0xa5,0xfa,0x62,0xb8,
0xcb,0xd6,0xbf,0x50,0x89,0x87,0x6b,0xd0,0x0a,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
//
// layout(set = 0, binding = 0) uniform texture3D src;
//
// layout(set = 0, binding = 1) buffer dst
// {
// uint destData[];
// };
//
// layout(push_constant) uniform PushConstants
// {
//
// uvec2 srcOffset;
// int srcDepth;
//
// bool reverseRowOrder;
//
// uvec2 size;
//
// uint outputOffset;
//
// uint outputPitch;
//
// bool isDstSnorm;
// } params;
//
// vec4 getSourceValue()
// {
// uvec2 coord = gl_GlobalInvocationID.xy;
// if (params.reverseRowOrder)
// {
// coord.y = params.size.y - coord.y - 1;
// }
// coord += params.srcOffset;
//
// vec4 srcValue = texelFetch(src, ivec3(coord, params.srcDepth), 0);
//
// return srcValue;
// }
//
// uint convertToDestValue(vec4 srcValue)
// {
//
// uvec4 normalized;
// if (params.isDstSnorm)
// {
// ivec4 scaled = ivec4(srcValue * 127.0);
// normalized = uvec4(scaled);
// }
// else
// {
// normalized = uvec4(clamp(srcValue, 0.0, 1.0) * 255.0);
// }
//
// normalized &= 0xFF;
//
// return normalized.r | normalized.g << 8 | normalized.b << 16 | normalized.a << 24;
//
// }
//
// void outputDestValue(uint destValue)
// {
// uint offset = params.outputOffset + params.outputPitch * gl_GlobalInvocationID.y + gl_GlobalInvocationID.x;
// destData[offset] = destValue;
// }
//
// void main()
// {
// if (any(greaterThanEqual(gl_GlobalInvocationID.xy, params.size)))
// return;
//
// vec4 srcValue = getSourceValue();
// uint destValue = convertToDestValue(srcValue);
// outputDestValue(destValue);
// }