Home
last modified time | relevance | path

Searched refs:gridSize (Results 1 – 25 of 44) sorted by relevance

12

/third_party/skia/third_party/externals/tint/test/bug/tint/
D1113.wgsl.expected.wgsl4 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 …]
D1113.wgsl4 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 …]
D1113.wgsl.expected.glsl7 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 …]
D1113.wgsl.expected.msl17 /* 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 …]
D1113.wgsl.expected.hlsl44 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);
/third_party/skia/third_party/externals/tint/test/bug/chromium/
D1273230.wgsl17 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 …]
D1273230.wgsl.expected.wgsl35 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 …]
D1273230.wgsl.expected.msl37 /* 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 …]
D1273230.wgsl.expected.hlsl73 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);
D1273230.wgsl.expected.spvasm34 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/
DvktImageAtomicOperationTests.cpp173 const IVec3& gridSize) in getAtomicFuncArgumentShaderStr() argument
189 …return string("((" + z + "*" + toString(gridSize.x()) + " + " + x + ")*" + toString(gridSize.y()) … in getAtomicFuncArgumentShaderStr()
291 const IVec3& gridSize) in getAtomicFuncArgument() argument
315 return (z*static_cast<T>(gridSize.x()) + x)*static_cast<T>(gridSize.y()) + y; in getAtomicFuncArgument()
508 const tcu::UVec3& gridSize, in initDataForImage() argument
513 …tcu::PixelBufferAccess pixelBuffer (format, gridSize.x(), gridSize.y(), gridSize.z(), bufferAllo… in initDataForImage()
519 for (deUint32 z = 0; z < gridSize.z(); z++) in initDataForImage()
520 for (deUint32 y = 0; y < gridSize.y(); y++) in initDataForImage()
521 for (deUint32 x = 0; x < gridSize.x(); x++) in initDataForImage()
530 for (deUint32 z = 0; z < gridSize.z(); z++) in initDataForImage()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
DvktImageAtomicOperationTests.cpp173 const IVec3& gridSize) in getAtomicFuncArgumentShaderStr() argument
189 …return string("((" + z + "*" + toString(gridSize.x()) + " + " + x + ")*" + toString(gridSize.y()) … in getAtomicFuncArgumentShaderStr()
291 const IVec3& gridSize) in getAtomicFuncArgument() argument
315 return (z*static_cast<T>(gridSize.x()) + x)*static_cast<T>(gridSize.y()) + y; in getAtomicFuncArgument()
508 const tcu::UVec3& gridSize, in initDataForImage() argument
513 …tcu::PixelBufferAccess pixelBuffer (format, gridSize.x(), gridSize.y(), gridSize.z(), bufferAllo… in initDataForImage()
519 for (deUint32 z = 0; z < gridSize.z(); z++) in initDataForImage()
520 for (deUint32 y = 0; y < gridSize.y(); y++) in initDataForImage()
521 for (deUint32 x = 0; x < gridSize.x(); x++) in initDataForImage()
530 for (deUint32 z = 0; z < gridSize.z(); z++) in initDataForImage()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsShaderRenderCase.cpp137 …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 …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderRenderCase.cpp153 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/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineSampleLocationsUtil.hpp43 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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineSampleLocationsUtil.hpp43 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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageMemoryAliasing.cpp466 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 …]
DvktSparseResourcesShaderIntrinsicsStorage.cpp35 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()
491 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipLevelNdx); in recordCommands() local
492 const tcu::UVec3 workGroupSize = computeWorkGroupSize(gridSize); in recordCommands()
493 const tcu::UVec3 specializationData[2] = { gridSize, workGroupSize }; in recordCommands()
534 …const deUint32 xWorkGroupCount = gridSize.x() / workGroupSize.x() + (gridSize.x() % workGroupSize… in recordCommands()
535 …const deUint32 yWorkGroupCount = gridSize.y() / workGroupSize.y() + (gridSize.y() % workGroupSize… in recordCommands()
536 …const deUint32 zWorkGroupCount = gridSize.z() / workGroupSize.z() + (gridSize.z() % workGroupSize… in recordCommands()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/
DvktSparseResourcesImageMemoryAliasing.cpp466 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 …]
DvktSparseResourcesShaderIntrinsicsStorage.cpp35 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()
491 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipLevelNdx); in recordCommands() local
492 const tcu::UVec3 workGroupSize = computeWorkGroupSize(gridSize); in recordCommands()
493 const tcu::UVec3 specializationData[2] = { gridSize, workGroupSize }; in recordCommands()
534 …const deUint32 xWorkGroupCount = gridSize.x() / workGroupSize.x() + (gridSize.x() % workGroupSize… in recordCommands()
535 …const deUint32 yWorkGroupCount = gridSize.y() / workGroupSize.y() + (gridSize.y() % workGroupSize… in recordCommands()
536 …const deUint32 zWorkGroupCount = gridSize.z() / workGroupSize.z() + (gridSize.z() % workGroupSize… in recordCommands()
/third_party/skia/bench/
DBulkRectBench.cpp196 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/
DvktShaderRender.cpp159 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/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRender.cpp159 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/
Des3sSpecialFloatTests.cpp1166 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/
Des31fDrawTests.cpp999 …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 …]

12