Lines Matching refs:Format
51 enum Format : unsigned char
91 FORMAT_G16R16, // D3D format
98 FORMAT_A16B16G16R16, // D3D format
247 Format format;
254 Surface(int width, int height, int depth, Format format, void *pixels, int pitch, int slice);
255 Surface(Resource *texture, int width, int height, int depth, Format format, bool lockable, bool renderTarget, int pitchP = 0);
258 static Surface *create(int width, int height, int depth, Format format, void *pixels, int pitch, int slice);
259 static Surface *create(Resource *texture, int width, int height, int depth, Format format, bool lockable, bool renderTarget, int pitchP = 0);
268 inline Format getFormat(bool internal = false) const;
276 inline Format getExternalFormat() const;
284 inline Format getInternalFormat() const;
292 inline Format getStencilFormat() const;
328 static int bytes(Format format);
329 static int pitchB(int width, Format format, bool target);
330 static int pitchP(int width, Format format, bool target);
331 static int sliceB(int width, int height, Format format, bool target);
332 static int sliceP(int width, int height, Format format, bool target);
333 static unsigned int size(int width, int height, int depth, Format format); // FIXME: slice * depth
335 static bool isStencil(Format format);
336 static bool isDepth(Format format);
337 static bool hasQuadLayout(Format format);
338 static bool isPalette(Format format);
340 static bool isFloatFormat(Format format);
341 static bool isUnsignedComponent(Format format, int component);
342 static bool isSRGBreadable(Format format);
343 static bool isSRGBwritable(Format format);
344 static bool isCompressed(Format format);
345 static bool isSignedNonNormalizedInteger(Format format);
346 static bool isUnsignedNonNormalizedInteger(Format format);
347 static bool isNonNormalizedInteger(Format format);
348 static bool isNormalizedInteger(Format format);
349 static int componentCount(Format format);
456 static void *allocateBuffer(int width, int height, int depth, Format format);
460 Format selectInternalFormat(Format format) const;
512 Format Surface::getFormat(bool internal) const
537 Format Surface::getExternalFormat() const
539 return external.format;
562 Format Surface::getInternalFormat() const
564 return internal.format;
587 Format Surface::getStencilFormat() const
589 return stencil.format;