// 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/GenerateFragmentShadingRate.comp.00000000.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kGenerateFragmentShadingRate_comp_00000000[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x95,0xdb,0x6f,0x55,0x55, 0x10,0xc6,0xd7,0x3a,0xe7,0xf4,0x72,0xc4,0x9c,0x82,0x96,0x42,0x61,0xdb,0x22,0x4d, 0xa3,0x29,0x87,0x82,0x41,0x4d,0x13,0x42,0xaa,0x4f,0x25,0x06,0x48,0x13,0x1e,0xfa, 0x6c,0xea,0x8b,0x0f,0x5e,0x12,0x7d,0xec,0x03,0xc6,0x34,0xfa,0x00,0xa8,0xd1,0x70, 0x29,0xf1,0x42,0x1f,0x48,0xb9,0x19,0xa3,0x72,0x69,0xff,0x04,0x01,0x15,0x24,0x51, 0x51,0x51,0x48,0xbc,0x44,0xa3,0x11,0x0c,0x58,0x04,0xd1,0x99,0xb5,0x7e,0x83,0xe3, 0xb1,0x71,0x27,0x2b,0x6b,0xcf,0x37,0xb3,0xbe,0xf9,0x66,0xad,0xd9,0x6b,0x97,0x4b, 0x3d,0x2d,0x21,0xc4,0x30,0x2f,0xb4,0x86,0xfe,0x18,0xd2,0xb3,0x20,0x94,0x42,0x64, 0xbe,0x4f,0xe6,0x79,0xa1,0x39,0xd9,0x43,0x1b,0x36,0x6f,0xe8,0x7f,0xe6,0xd9,0xc7, 0xfa,0xef,0x7f,0x60,0xb5,0xc6,0xd5,0x42,0x39,0xc5,0xab,0xaf,0x4d,0x62,0x9a,0x64, 0xae,0xc8,0x78,0xe2,0xd1,0xc7,0x9f,0x54,0x7c,0xbb,0x8c,0xf9,0x82,0x57,0x12,0x57, 0x90,0x0c,0x79,0x68,0xfc,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,0xec,0xc3,0xdc, 0xcb,0x47,0x1b,0xee,0xf5,0xe9,0x74,0xde,0x51,0xf6,0x2b,0x86,0xbf,0x01,0x09,0x7f, 0xde,0xcb,0x24,0x0c,0x00,0x00 }; // Generated from: // // #version 450 core // // struct FocalPoint { // float focalX; // float focalY; // float gainX; // float gainY; // float foveaArea; // }; // // layout(push_constant) uniform PushConstants // { // uint textureWidth; // uint textureHeight; // uint attachmentWidth; // uint attachmentHeight; // uint attachmentBlockWidth; // uint attachmentBlockHeight; // uint numOfFocalPoints; // FocalPoint focalPoints[2]; // } params; // // layout(binding = 0, r8ui) uniform writeonly uimage2D fragmentShadingRateImage; // layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; // // uint computeValue(ivec2 pos) // { // float minPixelDensity = 0.0f; // float focalPointDensity = 0.0f; // float px = ( (float(pos.x) * params.attachmentBlockWidth) / params.textureWidth - 0.5f) * 2.0f; // float py = ( (float(pos.y) * params.attachmentBlockHeight) / params.textureHeight - 0.5f) * 2.0f; // // for (uint point = 0; point < params.numOfFocalPoints; point ++) // { // float density = 1.0f / max(pow(params.focalPoints[point].focalX - px, 2) * // pow(params.focalPoints[point].gainX, 2) + // pow(params.focalPoints[point].focalY - py, 2) * // pow(params.focalPoints[point].gainY, 2) - // params.focalPoints[point].foveaArea, // 1.0f); // // if (density > focalPointDensity) // { // focalPointDensity = density; // } // } // minPixelDensity = max(minPixelDensity, focalPointDensity); // // uint val = 0; // if (minPixelDensity > 0.75f) // { // // val = 0; // } // else if (minPixelDensity > 0.5f) // { // // val = (1 << 2); // } // else // { // // val = (1 << 2) | 1; // } // return val; // } // // void main() // { // uint i = gl_GlobalInvocationID.x; // uint j = gl_GlobalInvocationID.y; // // if (i >= params.attachmentWidth || j >= params.attachmentHeight) // { // return; // } // // ivec2 pos = ivec2(i, j); // imageStore(fragmentShadingRateImage, pos, ivec4(computeValue(pos), 0, 0, 0)); // }