Home | History | Annotate | Download | only in functional

Lines Matching refs:IVec3

62 using tcu::IVec3;
88 static inline IVec3 defaultImageSize (TextureType type)
92 case TEXTURETYPE_BUFFER: return IVec3(64, 1, 1);
93 case TEXTURETYPE_2D: return IVec3(64, 64, 1);
94 case TEXTURETYPE_CUBE: return IVec3(64, 64, 1);
95 case TEXTURETYPE_3D: return IVec3(64, 64, 8);
96 case TEXTURETYPE_2D_ARRAY: return IVec3(64, 64, 8);
99 return IVec3(-1);
576 const IVec3& getSize (void) const { return m_size; }
606 const IVec3 m_size;
695 static void setTextureStorage (glu::CallLogWrapper& glLog, TextureType imageType, deUint32 internalFormat, const IVec3& imageSize, deUint32 textureBufGL)
735 const IVec3& imageSize = src.getSize();
826 const IVec3& textureSize,
883 const IVec3& textureSize,
1059 const IVec3& imageSize,
1137 const IVec3& imageSize = defaultImageSize(m_textureType);
1198 " imageStore(u_image, ivec3(gx, gy, gz), " + colorExpr + ");\n"
1321 const IVec3 imageSize = image.getSize();
1357 const IVec3& imageSize = defaultImageSize(m_textureType);
1448 " ivec3 pos = ivec3(gl_GlobalInvocationID);\n"
1449 " imageStore(u_image1, pos, imageLoad(u_image0, ivec3(" + toString(imageSize.x()-1) + "-pos.x, pos.y, pos.z)));\n"
1617 static int getAtomicFuncArgument (AtomicOperation op, const IVec3& invocationID, const IVec2& dispatchSizeXY);
1647 int BinaryAtomicOperationCase::getAtomicFuncArgument (AtomicOperation op, const IVec3& invocationID, const IVec2& dispatchSizeXY)
1728 IVec3 invocationGlobalIDs[NUM_INVOCATIONS_PER_PIXEL];
1733 const IVec3 gid(x + i*resultSlice.getWidth(), y, sliceOrFaceNdx);
1823 IVec3 invocationGlobalIDs[NUM_INVOCATIONS_PER_PIXEL];
1829 const IVec3 gid (pixCoord.x(), pixCoord.y(), sliceOrFaceNdx);
1932 const IVec3& imageSize = defaultImageSize(m_imageType);
1940 // Size imageSize*IVec3(N, 1, 1) or, for cube maps, imageSize*IVec3(N, N, 1) where N is NUM_INVOCATIONS_PER_PIXEL.
1994 setTextureStorage(glLog, m_imageType, internalFormatGL, imageSize * (m_imageType == TEXTURETYPE_CUBE ? IVec3(NUM_INVOCATIONS_PER_PIXEL, NUM_INVOCATIONS_PER_PIXEL, 1)
1995 : IVec3(NUM_INVOCATIONS_PER_PIXEL, 1, 1)),
2010 : "ivec3(gx % " + toString(imageSize.x()) + ", gy, gz)";
2013 : "ivec3(gx, gy, gz)";
2076 const IVec3 textureToCheckSize = imageSize * IVec3(m_caseType == ATOMIC_OPERATION_CASE_TYPE_END_RESULT ? 1 : NUM_INVOCATIONS_PER_PIXEL, 1, 1);
2118 static int getCompareArg (const IVec3& invocationID, int imageWidth);
2119 static int getAssignArg (const IVec3& invocationID, int imageWidth);
2130 int AtomicCompSwapCase::getCompareArg (const IVec3& invocationID, int imageWidth)
2141 int AtomicCompSwapCase::getAssignArg (const IVec3& invocationID, int imageWidth)
2143 return getCompareArg(IVec3(invocationID.x() + imageWidth, invocationID.y(), invocationID.z()), imageWidth);
2192 IVec3 invocationGlobalIDs[NUM_INVOCATIONS_PER_PIXEL];
2197 const IVec3 gid(x + i*resultSlice.getWidth(), y, sliceOrFaceNdx);
2252 IVec3 invocationGlobalIDs[NUM_INVOCATIONS_PER_PIXEL];
2258 const IVec3 gid (pixCoord.x(), pixCoord.y(), sliceOrFaceNdx);
2333 const IVec3& imageSize = defaultImageSize(m_imageType);
2341 // Size imageSize*IVec3(N, 1, 1) or, for cube maps, imageSize*IVec3(N, N, 1) where N is NUM_INVOCATIONS_PER_PIXEL.
2369 imageData.setPixel(x, y, z, IVec4(getCompareArg(IVec3(x, y, z), imageSize.x())));
2395 setTextureStorage(glLog, m_imageType, internalFormatGL, imageSize * (m_imageType == TEXTURETYPE_CUBE ? IVec3(NUM_INVOCATIONS_PER_PIXEL, NUM_INVOCATIONS_PER_PIXEL, 1)
2396 : IVec3(NUM_INVOCATIONS_PER_PIXEL, 1, 1)),
2412 : "ivec3(gx % " + toString(imageSize.x()) + ", gy, gz)";
2415 : "ivec3(gx, gy, gz)";
2479 const IVec3 relevantRegion = imageSize * (m_caseType == ATOMIC_OPERATION_CASE_TYPE_END_RESULT ? IVec3(1, 1, 1)
2480 : IVec3(NUM_INVOCATIONS_PER_PIXEL, 1, 1));
2553 const IVec3& imageSize = defaultImageSize(m_imageType);
2562 const IVec3 numGroups = IVec3(16, de::min(16, imageSize.y()), de::min(2, numSlicesOrFaces));
2563 const IVec3 workItemSize = IVec3(imageSize.x(), imageSize.y(), numSlicesOrFaces);
2564 const IVec3 localSize = workItemSize / numGroups;
2565 const IVec3 minReqMaxLocalSize = IVec3(128, 128, 64);
2598 : "ivec3(gx, gy, gz)";
2642 : "ivec3(readX, readY, readZ)") + ").x;\n"
2752 ImageSizeCase (Context& context, const char* name, const char* description, const TextureFormat& format, TextureType imageType, const IVec3& size, ImageAccess imageAccess)
2767 const IVec3 m_imageSize;
2801 setTextureStorage(glLog, TEXTURETYPE_2D, GL_R32UI, IVec3(1, 1, 1), 0 /* always 2d texture, no buffer needed */);
2836 " ivec3 size = imageSize(u_image);\n"
2869 IVec3(1, 1, 1), R32UIImageSingleValueVerifier(referenceOutput)))
3134 IVec3(1, 1, 1), R32UIImageSingleValueVerifier(expectedMin, expectedMax)))
3292 static const IVec3 baseImageSizes[] =
3294 IVec3(32, 32, 32),
3295 IVec3(12, 34, 56),
3296 IVec3(1, 1, 1),
3297 IVec3(7, 1, 1)
3310 const IVec3& baseSize = baseImageSizes[imageSizeNdx];
3311 const IVec3 imageSize = imageType == TEXTURETYPE_BUFFER ? IVec3(baseSize.x(), 1, 1)
3312 : imageType == TEXTURETYPE_2D ? IVec3(baseSize.x(), baseSize.y(), 1)
3313 : imageType == TEXTURETYPE_CUBE ? IVec3(baseSize.x(), baseSize.x(), 1)
3316 : IVec3(-1, -1, -1);