Lines Matching defs:width

985 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height, int depth, const void* data)
987 , m_size (width, height, depth)
1005 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height, int depth, int rowPitch, int slicePitch, const void* data)
1007 , m_size (width, height, depth)
1046 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth, void* data)
1047 : ConstPixelBufferAccess(format, width, height, depth, data)
1056 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth, int rowPitch, int slicePitch, void* data)
1057 : ConstPixelBufferAccess(format, width, height, depth, rowPitch, slicePitch, data)
2027 int width = access.getWidth();
2032 if (sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width))
2035 int i = wrap(sampler.wrapS, x, width);
2042 int width = access.getWidth();
2049 if ((sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) ||
2053 int i = wrap(sampler.wrapS, x, width);
2061 int width = access.getWidth();
2070 if ((sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) ||
2075 int i = wrap(sampler.wrapS, x, width);
2107 int width = access.getWidth();
2117 i[m] = wrap(sampler.wrapS, x[m], width);
2121 iUseBorder[m] = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i[m], 0, width);
2181 int width = access.getWidth();
2196 i[m] = wrap(sampler.wrapS, x[m], width);
2202 iUseBorder[m] = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i[m], 0, width);
2301 int width = access.getWidth();
2312 int i0 = wrap(sampler.wrapS, x0, width);
2313 int i1 = wrap(sampler.wrapS, x1, width);
2323 bool i0UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i0, 0, width);
2324 bool i1UseBorder = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i1, 0, width);
2353 int width = access.getWidth();
2373 i[m] = wrap(sampler.wrapS, x[m], width);
2381 iUseBorder[m] = sampler.wrapS == Sampler::CLAMP_TO_BORDER && !de::inBounds(i[m], 0, width);
2577 TextureLevel::TextureLevel (const TextureFormat& format, int width, int height, int depth)
2581 setSize(width, height, depth);
2588 void TextureLevel::setStorage (const TextureFormat& format, int width, int height, int depth)
2591 setSize(width, height, depth);
2594 void TextureLevel::setSize (int width, int height, int depth)
2598 m_size = IVec3(width, height, depth);
3680 inline int computeMipPyramidLevels (int width, int height)
3682 return deLog2Floor32(de::max(width, height))+1;
3685 inline int computeMipPyramidLevels (int width, int height, int depth)
3687 return deLog2Floor32(de::max(width, de::max(height, depth)))+1;
3750 void TextureLevelPyramid::allocLevel (int levelNdx, int width, int height, int depth)
3752 const int size = m_format.getPixelSize()*width*height*depth;
3757 m_access[levelNdx] = PixelBufferAccess(m_format, width, height, depth, m_data[levelNdx].getPtr());
3770 Texture1D::Texture1D (const TextureFormat& format, int width)
3771 : TextureLevelPyramid (format, computeMipPyramidLevels(width))
3772 , m_width (width)
3805 const int width = getMipPyramidLevelSize(m_width, levelNdx);
3807 TextureLevelPyramid::allocLevel(levelNdx, width, 1, 1);
3812 Texture2D::Texture2D (const TextureFormat& format, int width, int height, bool es2)
3813 : TextureLevelPyramid (format, computeMipPyramidLevels(width, height))
3815 , m_width (width)
3821 Texture2D::Texture2D (const TextureFormat& format, int width, int height, int mipmaps)
3824 , m_width (width)
3861 const int width = getMipPyramidLevelSize(m_width, levelNdx);
3864 TextureLevelPyramid::allocLevel(levelNdx, width, height, 1);
4148 Texture1DArray::Texture1DArray (const TextureFormat& format, int width, int numLayers)
4149 : TextureLevelPyramid (format, computeMipPyramidLevels(width))
4150 , m_width (width)
4186 const int width = getMipPyramidLevelSize(m_width, levelNdx);
4188 TextureLevelPyramid::allocLevel(levelNdx, width, m_numLayers, 1);
4193 Texture2DArray::Texture2DArray (const TextureFormat& format, int width, int height, int numLayers)
4194 : TextureLevelPyramid (format, computeMipPyramidLevels(width, height))
4195 , m_width (width)
4234 const int width = getMipPyramidLevelSize(m_width, levelNdx);
4237 TextureLevelPyramid::allocLevel(levelNdx, width, height, m_numLayers);
4252 Texture3D::Texture3D (const TextureFormat& format, int width, int height, int depth)
4253 : TextureLevelPyramid (format, computeMipPyramidLevels(width, height, depth))
4254 , m_width (width)
4293 const int width = getMipPyramidLevelSize(m_width, levelNdx);
4297 TextureLevelPyramid::allocLevel(levelNdx, width, height, depth);