Lines Matching defs:formats

54 static const struct wined3d_format_channels formats[] =
59 /* FourCC formats */
71 /* IEEE formats */
84 /* Palettized formats */
87 /* Standard ARGB formats. */
121 /* Depth stencil formats */
138 /* Vendor-specific formats */
573 /* The following formats explicitly don't have WINED3DFMT_FLAG_TEXTURE set:
588 * These formats seem to be similar to the HILO formats in
592 * refused to support formats which can easily be emulated with pixel shaders,
602 /* FourCC formats */
654 /* IEEE formats */
697 /* Palettized formats */
706 /* Standard ARGB formats */
850 /* Depth stencil formats */
936 /* Vendor-specific formats */
966 * This will catch the argb formats before the loop is entered. */
967 if (format_id < (sizeof(formats) / sizeof(*formats))
968 && formats[format_id].id == format_id)
976 for (i = 0; i < (sizeof(formats) / sizeof(*formats)); ++i)
978 if (formats[i].id == format_id) return i;
986 UINT format_count = sizeof(formats) / sizeof(*formats);
989 gl_info->formats = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, format_count * sizeof(*gl_info->formats));
990 if (!gl_info->formats)
998 struct wined3d_format *format = &gl_info->formats[i];
999 format->id = formats[i].id;
1000 format->red_size = formats[i].red_size;
1001 format->green_size = formats[i].green_size;
1002 format->blue_size = formats[i].blue_size;
1003 format->alpha_size = formats[i].alpha_size;
1004 format->red_offset = formats[i].red_offset;
1005 format->green_offset = formats[i].green_offset;
1006 format->blue_offset = formats[i].blue_offset;
1007 format->alpha_offset = formats[i].alpha_offset;
1008 format->byte_count = formats[i].bpp;
1009 format->depth_size = formats[i].depth_size;
1010 format->stencil_size = formats[i].stencil_size;
1013 format->block_byte_count = formats[i].bpp;
1024 HeapFree(GetProcessHeap(), 0, gl_info->formats);
1028 gl_info->formats[fmt_idx].flags |= format_base_flags[i].flags;
1050 format = &gl_info->formats[fmt_idx];
1295 for (i = 0; i < sizeof(formats) / sizeof(*formats); ++i)
1298 struct wined3d_format *format = &gl_info->formats[i];
1376 for (i = 0; i < sizeof(formats) / sizeof(*formats); ++i)
1378 struct wined3d_format *format = &gl_info->formats[i];
1437 format = &gl_info->formats[fmt_idx];
1439 /* ARB_texture_rg defines floating point formats, but only if
1666 gl_info->formats[fmt_idx].flags |= WINED3DFMT_FLAG_FILTERING;
1675 format = &gl_info->formats[fmt_idx];
1678 filtered = check_filter(gl_info, gl_info->formats[fmt_idx].glInternal);
1697 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1701 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1705 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1709 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1713 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1717 * V16U16 is only supported by GL_NV_texture_shader. The formats need fixup if
1728 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1731 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1737 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1741 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1747 /* If GL_NV_texture_shader is not supported, those formats are converted, incompatibly
1751 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1754 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1757 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1764 * the shader, thus they are compatible with all WINED3DFMT_UNKNOWN group formats.
1772 gl_info->formats[idx].color_fixup = create_color_fixup_desc(
1778 gl_info->formats[idx].color_fixup= create_color_fixup_desc(
1785 gl_info->formats[idx].color_fixup = create_complex_fixup_desc(COMPLEX_FIXUP_YUY2);
1788 gl_info->formats[idx].color_fixup = create_complex_fixup_desc(COMPLEX_FIXUP_UYVY);
1792 gl_info->formats[idx].flags |= WINED3DFMT_FLAG_HEIGHT_SCALE;
1793 gl_info->formats[idx].height_scale.numerator = 3;
1794 gl_info->formats[idx].height_scale.denominator = 2;
1795 gl_info->formats[idx].color_fixup = create_complex_fixup_desc(COMPLEX_FIXUP_YV12);
1800 gl_info->formats[idx].color_fixup = create_complex_fixup_desc(COMPLEX_FIXUP_P8);
1806 gl_info->formats[idx].gl_vtx_format = GL_BGRA;
1814 gl_info->formats[idx].gl_vtx_type = GL_HALF_FLOAT; /* == GL_HALF_FLOAT_NV */
1817 gl_info->formats[idx].gl_vtx_type = GL_HALF_FLOAT;
1823 gl_info->formats[idx].flags &= ~WINED3DFMT_FLAG_TEXTURE;
1826 gl_info->formats[idx].flags &= ~WINED3DFMT_FLAG_TEXTURE;
1829 gl_info->formats[idx].flags &= ~WINED3DFMT_FLAG_TEXTURE;
1835 gl_info->formats[idx].flags &= ~WINED3DFMT_FLAG_TEXTURE;
1854 gl_info->formats[idx].flags |= WINED3DFMT_FLAG_TEXTURE;
1866 gl_info->formats[idx].flags |= WINED3DFMT_FLAG_TEXTURE;
1875 gl_info->formats[idx].flags |= WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET;
1878 for (i = 0; i < sizeof(formats) / sizeof(*formats); ++i)
1880 struct wined3d_format *format = &gl_info->formats[i];
1907 format = &gl_info->formats[fmt_idx];
1925 HeapFree(GetProcessHeap(), 0, gl_info->formats);
1926 gl_info->formats = NULL;
1951 HeapFree(GetProcessHeap(), 0, gl_info->formats);
1952 gl_info->formats = NULL;
1969 return &gl_info->formats[idx];
2976 * in the requested format. UNORM formats for example can only express values