/third_party/skia/third_party/externals/tint/test/bug/tint/ |
D | 1113.wgsl.expected.wgsl | 4 gridSize : u32; 69 var gridSize = f32(uniforms.gridSize); 70 var gx = ((gridSize * (position.x - uniforms.bbMin.x)) / cubeSize); 71 var gy = ((gridSize * (position.y - uniforms.bbMin.y)) / cubeSize); 72 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / cubeSize); 76 fn toIndex1D(gridSize : u32, voxelPos : vec3<f32>) -> u32 { 78 return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); 81 fn toIndex3D(gridSize : u32, index : u32) -> vec3<u32> { 82 var z = (index / (gridSize * gridSize)); 83 var y = ((index - ((gridSize * gridSize) * z)) / gridSize); [all …]
|
D | 1113.wgsl | 4 gridSize : u32; 50 var gridSize = f32(uniforms.gridSize); 52 var gx = gridSize * (position.x - uniforms.bbMin.x) / cubeSize; 53 var gy = gridSize * (position.y - uniforms.bbMin.y) / cubeSize; 54 var gz = gridSize * (position.z - uniforms.bbMin.z) / cubeSize; 59 fn toIndex1D(gridSize : u32, voxelPos : vec3<f32>) -> u32{ 64 + gridSize * icoord.y 65 + gridSize * gridSize * icoord.z; 68 fn toIndex3D(gridSize : u32, index : u32) -> vec3<u32>{ 69 var z = index / (gridSize * gridSize); [all …]
|
D | 1113.wgsl.expected.glsl | 7 uint gridSize; 45 float gridSize = float(uniforms.gridSize); 46 float gx = ((gridSize * (position.x - uniforms.bbMin.x)) / cubeSize); 47 float gy = ((gridSize * (position.y - uniforms.bbMin.y)) / cubeSize); 48 float gz = ((gridSize * (position.z - uniforms.bbMin.z)) / cubeSize); 52 uint toIndex1D(uint gridSize, vec3 voxelPos) { 54 return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); 89 uint voxelIndex = toIndex1D(uniforms.gridSize, voxelPos); 92 dbg.value0 = uniforms.gridSize; 124 uint gridSize; [all …]
|
D | 1113.wgsl.expected.msl | 17 /* 0x0004 */ uint gridSize; 60 float gridSize = float((*(tint_symbol)).gridSize); 61 float gx = ((gridSize * (position[0] - (*(tint_symbol)).bbMin[0])) / cubeSize); 62 float gy = ((gridSize * (position[1] - (*(tint_symbol)).bbMin[1])) / cubeSize); 63 float gz = ((gridSize * (position[2] - (*(tint_symbol)).bbMin[2])) / cubeSize); 67 uint toIndex1D(uint gridSize, float3 voxelPos) { 69 return ((icoord[0] + (gridSize * icoord[1])) + ((gridSize * gridSize) * icoord[2])); 72 uint3 toIndex3D(uint gridSize, uint index) { 73 uint z_1 = (index / (gridSize * gridSize)); 74 uint y_1 = ((index - ((gridSize * gridSize) * z_1)) / gridSize); [all …]
|
D | 1113.wgsl.expected.hlsl | 44 float gridSize = float(uniforms[0].y); 45 float gx = ((gridSize * (position.x - asfloat(uniforms[1].x))) / cubeSize); 46 float gy = ((gridSize * (position.y - asfloat(uniforms[1].y))) / cubeSize); 47 float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / cubeSize); 51 uint toIndex1D(uint gridSize, float3 voxelPos) { 53 return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); 56 uint3 toIndex3D(uint gridSize, uint index) { 57 uint z_1 = (index / (gridSize * gridSize)); 58 uint y_1 = ((index - ((gridSize * gridSize) * z_1)) / gridSize); 59 uint x_1 = (index % gridSize);
|
D | 1113.wgsl.expected.spvasm | 20 OpMemberName %Uniforms 1 "gridSize" 58 OpName %gridSize "gridSize" 63 OpName %gridSize_0 "gridSize" 67 OpName %gridSize_1 "gridSize" 240 %gridSize = OpVariable %_ptr_Function_float Function %75 276 OpStore %gridSize %76 277 %81 = OpLoad %float %gridSize 286 %90 = OpLoad %float %gridSize 295 %99 = OpLoad %float %gridSize
|
/third_party/skia/third_party/externals/tint/test/bug/chromium/ |
D | 1273230.wgsl | 17 gridSize : u32; 82 var gridSize = f32(uniforms.gridSize); 84 var gy = ((gx * (position.y - uniforms.bbMin.y)) / gridSize); 85 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / gridSize); 89 fn toIndex1D(gridSize : u32, voxelPos : vec3<f32>) -> u32 { 91 return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); 94 fn toIndex4D(gridSize : u32, index : u32) -> vec3<u32> { 95 var z = (gridSize / (index * index)); 96 var y = ((gridSize - ((gridSize * gridSize) * z)) / gridSize); 97 var x = (index % gridSize); [all …]
|
D | 1273230.wgsl.expected.wgsl | 35 gridSize : u32; 100 var gridSize = f32(uniforms.gridSize); 102 var gy = ((gx * (position.y - uniforms.bbMin.y)) / gridSize); 103 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / gridSize); 107 fn toIndex1D(gridSize : u32, voxelPos : vec3<f32>) -> u32 { 109 return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); 112 fn toIndex4D(gridSize : u32, index : u32) -> vec3<u32> { 113 var z = (gridSize / (index * index)); 114 var y = ((gridSize - ((gridSize * gridSize) * z)) / gridSize); 115 var x = (index % gridSize); [all …]
|
D | 1273230.wgsl.expected.msl | 37 /* 0x0004 */ uint gridSize; 88 float gridSize = float((*(tint_symbol)).gridSize); 90 float gy = ((gx * (position[1] - (*(tint_symbol)).bbMin[1])) / gridSize); 91 float gz = ((gridSize * (position[2] - (*(tint_symbol)).bbMin[2])) / gridSize); 95 uint toIndex1D(uint gridSize, float3 voxelPos) { 97 return ((icoord[0] + (gridSize * icoord[1])) + ((gridSize * gridSize) * icoord[2])); 100 uint3 toIndex4D(uint gridSize, uint index) { 101 uint z_1 = (gridSize / (index * index)); 102 uint y_1 = ((gridSize - ((gridSize * gridSize) * z_1)) / gridSize); 103 uint x_1 = (index % gridSize); [all …]
|
D | 1273230.wgsl.expected.hlsl | 73 float gridSize = float(uniforms[0].y); 75 float gy = ((gx * (position.y - asfloat(uniforms[1].y))) / gridSize); 76 float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / gridSize); 80 uint toIndex1D(uint gridSize, float3 voxelPos) { 82 return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); 85 uint3 toIndex4D(uint gridSize, uint index) { 86 uint z_1 = (gridSize / (index * index)); 87 uint y_1 = ((gridSize - ((gridSize * gridSize) * z_1)) / gridSize); 88 uint x_1 = (index % gridSize);
|
D | 1273230.wgsl.expected.spvasm | 34 OpMemberName %Uniforms 1 "gridSize" 73 OpName %gridSize "gridSize" 78 OpName %gridSize_0 "gridSize" 82 OpName %gridSize_1 "gridSize" 264 %gridSize = OpVariable %_ptr_Function_float Function %113 300 OpStore %gridSize %114 316 %134 = OpLoad %float %gridSize 319 %137 = OpLoad %float %gridSize 325 %143 = OpLoad %float %gridSize
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageAtomicOperationTests.cpp | 172 const IVec3& gridSize) in getAtomicFuncArgumentShaderStr() argument 188 …return string("((" + z + "*" + toString(gridSize.x()) + " + " + x + ")*" + toString(gridSize.y()) … in getAtomicFuncArgumentShaderStr() 290 const IVec3& gridSize) in getAtomicFuncArgument() argument 314 return (z*static_cast<T>(gridSize.x()) + x)*static_cast<T>(gridSize.y()) + y; in getAtomicFuncArgument() 507 const tcu::UVec3& gridSize, in initDataForImage() argument 512 …tcu::PixelBufferAccess pixelBuffer (format, gridSize.x(), gridSize.y(), gridSize.z(), bufferAllo… in initDataForImage() 518 for (deUint32 z = 0; z < gridSize.z(); z++) in initDataForImage() 519 for (deUint32 y = 0; y < gridSize.y(); y++) in initDataForImage() 520 for (deUint32 x = 0; x < gridSize.x(); x++) in initDataForImage() 529 for (deUint32 z = 0; z < gridSize.z(); z++) in initDataForImage() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineSampleLocationsUtil.hpp | 43 MultisamplePixelGrid (const tcu::UVec2& gridSize, const vk::VkSampleCountFlagBits numSamples) in MultisamplePixelGrid() argument 44 : m_gridSize (gridSize) in MultisamplePixelGrid() 46 , m_sampleLocations (gridSize.x() * gridSize.y() * numSamples) in MultisamplePixelGrid() 48 DE_ASSERT(gridSize.x() > 0 && gridSize.y() > 0); in MultisamplePixelGrid()
|
D | vktPipelineMultisampleTestsUtil.cpp | 130 const tcu::UVec3 gridSize = getShaderGridSize(imageType, imageSize); in getNumPixels() local 132 return gridSize.x() * gridSize.y() * gridSize.z(); in getNumPixels()
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcShaderRenderCase.cpp | 153 QuadGrid(int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, 233 QuadGrid::QuadGrid(int gridSize, int width, int height, const Vec4& constCoords, in QuadGrid() argument 235 : m_gridSize(gridSize) in QuadGrid() 236 , m_numVertices((gridSize + 1) * (gridSize + 1)) in QuadGrid() 237 , m_numTriangles(gridSize * gridSize * 2) in QuadGrid() 255 for (int y = 0; y < gridSize + 1; y++) in QuadGrid() 256 for (int x = 0; x < gridSize + 1; x++) in QuadGrid() 258 float sx = static_cast<float>(x) / static_cast<float>(gridSize); in QuadGrid() 259 float sy = static_cast<float>(y) / static_cast<float>(gridSize); in QuadGrid() 262 int vtxNdx = ((y * (gridSize + 1)) + x); in QuadGrid() [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsShaderRenderCase.cpp | 137 …QuadGrid (int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, const vecto… 177 QuadGrid::QuadGrid (int gridSize, int width, int height, const Vec4& constCoords, const vector<Mat4… in QuadGrid() argument 178 : m_gridSize (gridSize) in QuadGrid() 179 , m_numVertices ((gridSize + 1) * (gridSize + 1)) in QuadGrid() 180 , m_numTriangles (gridSize * gridSize * 2) in QuadGrid() 198 for (int y = 0; y < gridSize+1; y++) in QuadGrid() 199 for (int x = 0; x < gridSize+1; x++) in QuadGrid() 201 float sx = (float)x / (float)gridSize; in QuadGrid() 202 float sy = (float)y / (float)gridSize; in QuadGrid() 205 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid() [all …]
|
D | glsVertexArrayTests.cpp | 1236 …ride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float gridSize); 1241 … componentCount, int offset, int stride, Array::Primitive primitive, T min, T max, float gridSize); 1341 …tride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float gridSize) in generateQuads() argument 1348 …<GLValue::Float>(seed, count, componentCount, offset, stride, primitive, min.fl, max.fl, gridSize); in generateQuads() 1352 …<GLValue::Fixed>(seed, count, componentCount, offset, stride, primitive, min.fi, max.fi, gridSize); in generateQuads() 1356 …s<GLValue::Double>(seed, count, componentCount, offset, stride, primitive, min.d, max.d, gridSize); in generateQuads() 1360 …ads<GLValue::Byte>(seed, count, componentCount, offset, stride, primitive, min.b, max.b, gridSize); in generateQuads() 1364 …ds<GLValue::Short>(seed, count, componentCount, offset, stride, primitive, min.s, max.s, gridSize); in generateQuads() 1368 …<GLValue::Ubyte>(seed, count, componentCount, offset, stride, primitive, min.ub, max.ub, gridSize); in generateQuads() 1372 …GLValue::Ushort>(seed, count, componentCount, offset, stride, primitive, min.us, max.us, gridSize); in generateQuads() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
D | vktSparseResourcesImageMemoryAliasing.cpp | 466 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipmapNdx); in iterate() local 468 …const deUint32 planeW = gridSize.x() / (formatDescription.blockWidth * formatDescription.plane… in iterate() 660 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipLevelNdx); in iterate() local 661 …const deUint32 xWorkGroupSize = std::min(std::min(gridSize.x(), maxWorkGroupSize.x()), maxWorkGr… in iterate() 662 …const deUint32 yWorkGroupSize = std::min(std::min(gridSize.y(), maxWorkGroupSize.y()), maxWorkGr… in iterate() 663 …const deUint32 zWorkGroupSize = std::min(std::min(gridSize.z(), maxWorkGroupSize.z()), maxWorkGr… in iterate() 665 …const deUint32 xWorkGroupCount = gridSize.x() / xWorkGroupSize + (gridSize.x() % xWorkGroupSize … in iterate() 666 …const deUint32 yWorkGroupCount = gridSize.y() / yWorkGroupSize + (gridSize.y() % yWorkGroupSize … in iterate() 667 …const deUint32 zWorkGroupCount = gridSize.z() / zWorkGroupSize + (gridSize.z() % zWorkGroupSize … in iterate() 746 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipmapNdx); in iterate() local [all …]
|
D | vktSparseResourcesShaderIntrinsicsStorage.cpp | 35 tcu::UVec3 computeWorkGroupSize (const tcu::UVec3& gridSize) in computeWorkGroupSize() argument 40 …const deUint32 xWorkGroupSize = std::min(std::min(gridSize.x(), maxComputeWorkGroupSize.x()), maxC… in computeWorkGroupSize() 41 …const deUint32 yWorkGroupSize = std::min(std::min(gridSize.y(), maxComputeWorkGroupSize.y()), maxC… in computeWorkGroupSize() 42 …const deUint32 zWorkGroupSize = std::min(std::min(gridSize.z(), maxComputeWorkGroupSize.z()), maxC… in computeWorkGroupSize() 480 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipLevelNdx); in recordCommands() local 481 const tcu::UVec3 workGroupSize = computeWorkGroupSize(gridSize); in recordCommands() 482 const tcu::UVec3 specializationData[2] = { gridSize, workGroupSize }; in recordCommands() 523 …const deUint32 xWorkGroupCount = gridSize.x() / workGroupSize.x() + (gridSize.x() % workGroupSize… in recordCommands() 524 …const deUint32 yWorkGroupCount = gridSize.y() / workGroupSize.y() + (gridSize.y() % workGroupSize… in recordCommands() 525 …const deUint32 zWorkGroupCount = gridSize.z() / workGroupSize.z() + (gridSize.z() % workGroupSize… in recordCommands()
|
/third_party/skia/bench/ |
D | BulkRectBench.cpp | 196 int gridSize = SkScalarCeilToInt(SkScalarSqrt(kRectCount)); in onDelayedSetup() local 197 SkASSERT(gridSize * gridSize >= kRectCount); in onDelayedSetup() 199 SkScalar w = (kWidth - 1.f) / gridSize; in onDelayedSetup() 200 SkScalar h = (kHeight - 1.f) / gridSize; in onDelayedSetup() 202 SkScalar x = (i % gridSize) * w + 0.5f; // Offset to ensure AA doesn't get disabled in onDelayedSetup() 203 SkScalar y = (i / gridSize) * h + 0.5f; in onDelayedSetup()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRender.cpp | 159 QuadGrid (int gridSize, 206 QuadGrid::QuadGrid (int gridSize, in QuadGrid() argument 212 : m_gridSize (gridSize) in QuadGrid() 213 , m_numVertices ((gridSize + 1) * (gridSize + 1)) in QuadGrid() 214 , m_numTriangles (gridSize * gridSize * 2) in QuadGrid() 232 for (int y = 0; y < gridSize+1; y++) in QuadGrid() 233 for (int x = 0; x < gridSize+1; x++) in QuadGrid() 235 float sx = (float)x / (float)gridSize; in QuadGrid() 236 float sy = (float)y / (float)gridSize; in QuadGrid() 239 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid() [all …]
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
D | es3sSpecialFloatTests.cpp | 1166 const int gridSize = 16; in iterate() local 1167 std::vector<tcu::Vec4> gridVertices (gridSize * gridSize); in iterate() 1168 std::vector<tcu::Vec2> gridTexCoords (gridSize * gridSize); in iterate() 1169 std::vector<deUint16> indices ((gridSize - 1) * (gridSize - 1) * 6); in iterate() 1173 for (int x = 0; x < gridSize; ++x) in iterate() 1174 for (int y = 0; y < gridSize; ++y) in iterate() 1176 …const float posX = (float)x / ((float)gridSize - 1.0f) * 2.0f - 1.0f; // map from [0, gridSize - … in iterate() 1177 const float posY = (float)y / ((float)gridSize - 1.0f) * 2.0f - 1.0f; in iterate() 1178 const float texCoordX = deFloatPow(2.0f, (float)x - (float)gridSize / 2.0f); in iterate() 1179 const float texCoordY = deFloatPow(2.0f, (float)y - (float)gridSize / 2.0f); in iterate() [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fDrawTests.cpp | 999 …hod method, bool computeCmd, bool computeData, bool computeIndices, int gridSize, int drawCallCoun… 1035 …hod method, bool computeCmd, bool computeData, bool computeIndices, int gridSize, int drawCallCoun… in ComputeShaderGeneratedCase() argument 1043 , m_gridSize (gridSize) in ComputeShaderGeneratedCase() 1579 …hod method, bool computeCmd, bool computeData, bool computeIndices, int gridSize, int numDrawCalls… 1591 …hod method, bool computeCmd, bool computeData, bool computeIndices, int gridSize, int numDrawCalls) in ComputeShaderGeneratedCombinedCase() argument 1592 …dCase(context, name, desc, method, computeCmd, computeData, computeIndices, gridSize, numDrawCalls) in ComputeShaderGeneratedCombinedCase() 1695 …hod method, bool computeCmd, bool computeData, bool computeIndices, int gridSize, int numDrawCalls… 1712 …hod method, bool computeCmd, bool computeData, bool computeIndices, int gridSize, int numDrawCalls) in ComputeShaderGeneratedSeparateCase() argument 1713 …Case (context, name, desc, method, computeCmd, computeData, computeIndices, gridSize, numDrawCalls) in ComputeShaderGeneratedSeparateCase() 1910 const int gridSize = 8; in init() local [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureFilteringAnisotropyTests.cpp | 112 const int gridSize = max(texture->getLevel(0, 0).getHeight() / 8, 1); in iterate() local 113 tcu::fillWithGrid(texture->getLevel(0, 0), gridSize, Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4(1.0f)); in iterate() 120 const int gridSize = max(texture->getLevel(levelNdx, 0).getHeight() / 8, 1); in iterate() local 121 …tcu::fillWithGrid(texture->getLevel(levelNdx, 0), gridSize, Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4(1.0… in iterate()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fVertexTextureTests.cpp | 190 …PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const… 229 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const Tex… in PosTexCoordQuadGrid() argument 230 : m_gridSize(gridSize) in PosTexCoordQuadGrid() 336 const int gridSize = grid.getSize(); in setPixelColors() local 338 for (int y = 0; y < gridSize; y++) in setPixelColors() 339 for (int x = 0; x < gridSize; x++) in setPixelColors() 341 const Vec4 color = quadColors[y*gridSize + x]; in setPixelColors() 365 const int gridSize = grid.getSize(); in computeReference() local 366 vector<Vec4> quadColors (gridSize*gridSize); in computeReference() 368 for (int y = 0; y < gridSize; y++) in computeReference() [all …]
|