ReactOS  0.4.14-dev-52-g6116262
wined3d_private.h File Reference
#include <assert.h>
#include <stdarg.h>
#include <math.h>
#include <limits.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "wingdi.h"
#include "winuser.h"
#include "winternl.h"
#include "ddk/d3dkmthk.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "objbase.h"
#include "wine/wined3d.h"
#include "wined3d_gl.h"
#include "wine/list.h"
#include "wine/rbtree.h"
#include "wine/wgl_driver.h"
#include <pshpack2.h>
#include <poppack.h>
Include dependency graph for wined3d_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  color_fixup_desc
 
struct  wined3d_d3d_limits
 
struct  wined3d_ffp_attrib_ops
 
struct  wined3d_d3d_info
 
struct  min_lookup
 
struct  wined3d_settings
 
struct  wined3d_string_buffer
 
struct  wined3d_shader_version
 
struct  wined3d_shader_resource_info
 
struct  wined3d_shader_sampler_map_entry
 
struct  wined3d_shader_sampler_map
 
struct  wined3d_shader_immediate_constant_buffer
 
struct  wined3d_shader_indexable_temp
 
struct  wined3d_shader_reg_maps
 
struct  wined3d_shader_tex_mx
 
struct  wined3d_shader_parser_state
 
struct  wined3d_shader_context
 
struct  wined3d_shader_register_index
 
struct  wined3d_shader_register
 
struct  wined3d_shader_dst_param
 
struct  wined3d_shader_src_param
 
struct  wined3d_shader_index_range
 
struct  wined3d_shader_semantic
 
struct  wined3d_shader_register_semantic
 
struct  wined3d_shader_structured_resource
 
struct  wined3d_shader_tgsm
 
struct  wined3d_shader_tgsm_raw
 
struct  wined3d_shader_tgsm_structured
 
struct  wined3d_shader_thread_group_size
 
struct  wined3d_shader_function_table_pointer
 
struct  wined3d_shader_texel_offset
 
struct  wined3d_shader_primitive_type
 
struct  wined3d_shader_instruction
 
struct  wined3d_shader_attribute
 
struct  wined3d_shader_loop_control
 
struct  wined3d_shader_frontend
 
struct  shader_caps
 
struct  ps_compile_args
 
struct  vs_compile_args
 
struct  ds_compile_args
 
struct  gs_compile_args
 
struct  wined3d_shader_backend_ops
 
struct  wined3d_bo_address
 
struct  wined3d_const_bo_address
 
struct  wined3d_stream_info_element
 
struct  wined3d_stream_info
 
struct  wined3d_direct_dispatch_parameters
 
struct  wined3d_indirect_dispatch_parameters
 
struct  wined3d_dispatch_parameters
 
struct  wined3d_direct_draw_parameters
 
struct  wined3d_indirect_draw_parameters
 
struct  wined3d_draw_parameters
 
union  wined3d_gl_fence_object
 
struct  wined3d_fence
 
struct  wined3d_query_ops
 
struct  wined3d_query
 
struct  wined3d_event_query
 
struct  wined3d_occlusion_query
 
struct  wined3d_timestamp_query
 
union  wined3d_gl_so_statistics_query
 
struct  wined3d_so_statistics_query
 
union  wined3d_gl_pipeline_statistics_query
 
struct  wined3d_pipeline_statistics_query
 
struct  wined3d_gl_view
 
struct  wined3d_rendertarget_info
 
struct  wined3d_context
 
struct  wined3d_fb_state
 
struct  StateEntry
 
struct  StateEntryTemplate
 
struct  fragment_caps
 
struct  fragment_pipeline
 
struct  wined3d_vertex_caps
 
struct  wined3d_vertex_pipe_ops
 
struct  wined3d_blitter
 
struct  wined3d_blitter_ops
 
struct  wined3d_light_info
 
struct  wined3d_pixel_format
 
struct  wined3d_fbo_ops
 
struct  wined3d_gl_limits
 
struct  wined3d_gl_info
 
struct  wined3d_driver_info
 
struct  wined3d_adapter
 
struct  wined3d_caps_gl_ctx
 
struct  texture_stage_op
 
struct  ffp_frag_settings
 
struct  ffp_frag_desc
 
struct  wined3d_ffp_vs_settings
 
struct  wined3d_ffp_vs_desc
 
struct  wined3d
 
struct  wined3d_blend_state
 
struct  wined3d_rasterizer_state
 
struct  wined3d_stream_output
 
struct  wined3d_stream_state
 
struct  wined3d_state
 
struct  wined3d_dummy_textures
 
struct  wined3d_device
 
struct  wined3d_resource_ops
 
struct  wined3d_resource
 
struct  gl_texture
 
struct  wined3d_texture_ops
 
struct  wined3d_texture
 
struct  wined3d_texture::wined3d_texture_async
 
struct  wined3d_texture::wined3d_overlay_info
 
struct  wined3d_texture::wined3d_texture_sub_resource
 
struct  wined3d_renderbuffer_entry
 
struct  wined3d_fbo_resource
 
struct  fbo_entry
 
struct  fbo_entry::wined3d_fbo_entry_key
 
struct  wined3d_surface
 
struct  wined3d_sampler
 
struct  wined3d_vertex_declaration_element
 
struct  wined3d_vertex_declaration
 
struct  wined3d_saved_states
 
struct  StageState
 
struct  wined3d_stateblock
 
struct  wined3d_cs_queue
 
struct  wined3d_cs_ops
 
struct  wined3d_cs
 
struct  wined3d_map_range
 
struct  wined3d_buffer
 
struct  wined3d_rendertarget_view
 
struct  wined3d_shader_resource_view
 
struct  wined3d_unordered_access_view
 
struct  wined3d_swapchain_ops
 
struct  wined3d_swapchain
 
struct  wined3d_shader_lconst
 
struct  wined3d_shader_limits
 
struct  wined3d_string_buffer_list
 
struct  wined3d_shader_phase
 
struct  wined3d_vertex_shader
 
struct  wined3d_hull_shader
 
struct  wined3d_domain_shader
 
struct  wined3d_geometry_shader
 
struct  wined3d_pixel_shader
 
struct  wined3d_compute_shader
 
struct  wined3d_shader
 
struct  ps_np2fixup_info
 
struct  wined3d_palette
 
struct  wined3d_rational
 
struct  wined3d_color_key_conversion
 
struct  wined3d_format
 

Macros

#define WINE_GLAPI
 
#define WIN32_NO_STATUS
 
#define NONAMELESSUNION
 
#define NONAMELESSSTRUCT
 
#define COBJMACROS
 
#define ARRAY_SIZE(array)   (sizeof(array) / sizeof((array)[0]))
 
#define MAKEDWORD_VERSION(maj, min)   (((maj & 0xffffu) << 16) | (min & 0xffffu))
 
#define WINED3D_QUIRK_ARB_VS_OFFSET_LIMIT   0x00000001
 
#define WINED3D_QUIRK_SET_TEXCOORD_W   0x00000002
 
#define WINED3D_QUIRK_GLSL_CLIP_VARYING   0x00000004
 
#define WINED3D_QUIRK_ALLOWS_SPECULAR_ALPHA   0x00000008
 
#define WINED3D_QUIRK_NV_CLIP_BROKEN   0x00000010
 
#define WINED3D_QUIRK_FBO_TEX_UPDATE   0x00000020
 
#define WINED3D_QUIRK_BROKEN_RGBA16   0x00000040
 
#define WINED3D_QUIRK_INFO_LOG_SPAM   0x00000080
 
#define WINED3D_QUIRK_LIMITED_TEX_FILTERING   0x00000100
 
#define WINED3D_QUIRK_BROKEN_ARB_FOG   0x00000200
 
#define MAX_STREAMS   16
 
#define MAX_TEXTURES   8
 
#define MAX_FRAGMENT_SAMPLERS   16
 
#define MAX_VERTEX_SAMPLERS   4
 
#define MAX_COMBINED_SAMPLERS   (MAX_FRAGMENT_SAMPLERS + MAX_VERTEX_SAMPLERS)
 
#define MAX_ACTIVE_LIGHTS   8
 
#define MAX_CLIP_DISTANCES   8
 
#define MAX_CONSTANT_BUFFERS   15
 
#define MAX_SAMPLER_OBJECTS   16
 
#define MAX_SHADER_RESOURCE_VIEWS   128
 
#define MAX_RENDER_TARGET_VIEWS   8
 
#define MAX_UNORDERED_ACCESS_VIEWS   8
 
#define MAX_TGSM_REGISTERS   8192
 
#define MAX_VERTEX_BLENDS   4
 
#define MAX_VERTEX_INDEX_BLENDS   9
 
#define MAX_MULTISAMPLE_TYPES   8
 
#define MAX_RENDER_TARGETS   8
 
#define ORM_BACKBUFFER   0
 
#define ORM_FBO   1
 
#define PCI_VENDOR_NONE   0xffff /* e.g. 0x8086 for Intel and 0x10de for Nvidia */
 
#define PCI_DEVICE_NONE   0xffff /* e.g. 0x14f for a Geforce6200 */
 
#define WINED3D_SHADER_CONST_VS_F   0x00000001
 
#define WINED3D_SHADER_CONST_VS_I   0x00000002
 
#define WINED3D_SHADER_CONST_VS_B   0x00000004
 
#define WINED3D_SHADER_CONST_VS_CLIP_PLANES   0x00000008
 
#define WINED3D_SHADER_CONST_VS_POINTSIZE   0x00000010
 
#define WINED3D_SHADER_CONST_POS_FIXUP   0x00000020
 
#define WINED3D_SHADER_CONST_PS_F   0x00000040
 
#define WINED3D_SHADER_CONST_PS_I   0x00000080
 
#define WINED3D_SHADER_CONST_PS_B   0x00000100
 
#define WINED3D_SHADER_CONST_PS_BUMP_ENV   0x00000200
 
#define WINED3D_SHADER_CONST_PS_FOG   0x00000400
 
#define WINED3D_SHADER_CONST_PS_ALPHA_TEST   0x00000800
 
#define WINED3D_SHADER_CONST_PS_Y_CORR   0x00001000
 
#define WINED3D_SHADER_CONST_PS_NP2_FIXUP   0x00002000
 
#define WINED3D_SHADER_CONST_FFP_MODELVIEW   0x00004000
 
#define WINED3D_SHADER_CONST_FFP_PROJ   0x00010000
 
#define WINED3D_SHADER_CONST_FFP_TEXMATRIX   0x00020000
 
#define WINED3D_SHADER_CONST_FFP_MATERIAL   0x00040000
 
#define WINED3D_SHADER_CONST_FFP_LIGHTS   0x00080000
 
#define WINED3D_SHADER_CONST_FFP_PS   0x00100000
 
#define WINED3D_SHADER_CONST_FFP_COLOR_KEY   0x00200000
 
#define WINED3D_SHADER_CONST_FFP_VERTEXBLEND   0xff000000
 
#define WINED3D_SHADER_CONST_FFP_VERTEXBLEND_INDEX(i)   (0x01000000 << ((i) - 1))
 
#define WINED3DSP_NOSWIZZLE   (0u | (1u << 2) | (2u << 4) | (3u << 6))
 
#define WINED3DSP_WRITEMASK_0   0x1u /* .x r */
 
#define WINED3DSP_WRITEMASK_1   0x2u /* .y g */
 
#define WINED3DSP_WRITEMASK_2   0x4u /* .z b */
 
#define WINED3DSP_WRITEMASK_3   0x8u /* .w a */
 
#define WINED3DSP_WRITEMASK_ALL   0xfu /* all */
 
#define WINED3D_PACKED_INTERPOLATION_SIZE   3
 
#define WINED3D_PACKED_INTERPOLATION_BIT_COUNT   3
 
#define WINED3DSI_TEXLD_PROJECT   0x1
 
#define WINED3DSI_TEXLD_BIAS   0x2
 
#define WINED3DSI_INDEXED_DYNAMIC   0x4
 
#define WINED3DSI_RESINFO_RCP_FLOAT   0x1
 
#define WINED3DSI_RESINFO_UINT   0x2
 
#define WINED3DSI_SAMPLE_INFO_UINT   0x1
 
#define WINED3DSI_SAMPLER_COMPARISON_MODE   0x1
 
#define WINED3D_SM1_VS   0xfffeu
 
#define WINED3D_SM1_PS   0xffffu
 
#define WINED3D_SM4_PS   0x0000u
 
#define WINED3D_SM4_VS   0x0001u
 
#define WINED3D_SM4_GS   0x0002u
 
#define WINED3D_SM5_HS   0x0003u
 
#define WINED3D_SM5_DS   0x0004u
 
#define WINED3D_SM5_CS   0x0005u
 
#define WINED3DPS_VERSION(major, minor)   ((WINED3D_SM1_PS << 16) | ((major) << 8) | (minor))
 
#define WINED3DVS_VERSION(major, minor)   ((WINED3D_SM1_VS << 16) | ((major) << 8) | (minor))
 
#define MAX_ATTRIBS   16
 
#define MAX_REG_ADDR   1
 
#define MAX_REG_TEXCRD   8
 
#define MAX_REG_INPUT   32
 
#define MAX_REG_OUTPUT   32
 
#define WINED3D_MAX_CBS   15
 
#define WINED3D_MAX_CONSTS_B   16
 
#define WINED3D_MAX_CONSTS_I   16
 
#define WINED3D_MAX_VS_CONSTS_F   256
 
#define WINED3D_MAX_PS_CONSTS_F   224
 
#define MAX_LABELS   16
 
#define MAX_IMMEDIATE_CONSTANT_BUFFER_SIZE   4096
 
#define WINED3D_SAMPLER_DEFAULT   ~0x0u
 
#define WINED3D_SHADER_VERSION(major, minor)   (((major) << 8) | (minor))
 
#define WINED3D_SHADER_CAP_VS_CLIPPING   0x00000001
 
#define WINED3D_SHADER_CAP_SRGB_WRITE   0x00000002
 
#define WINED3D_SHADER_CAP_DOUBLE_PRECISION   0x00000004
 
#define WINED3D_CONST_NUM_UNUSED   ~0U
 
#define WINED3D_PSARGS_PROJECTED   (1u << 3)
 
#define WINED3D_PSARGS_TEXTRANSFORM_SHIFT   4
 
#define WINED3D_PSARGS_TEXTRANSFORM_MASK   0xfu
 
#define WINED3D_PSARGS_TEXTYPE_SHIFT   2
 
#define WINED3D_PSARGS_TEXTYPE_MASK   0x3u
 
#define GL_EXTCALL(f)   (gl_info->gl_ops.ext.p_##f)
 
#define D3DCOLOR_B_R(dw)   (((dw) >> 16) & 0xff)
 
#define D3DCOLOR_B_G(dw)   (((dw) >> 8) & 0xff)
 
#define D3DCOLOR_B_B(dw)   (((dw) >> 0) & 0xff)
 
#define D3DCOLOR_B_A(dw)   (((dw) >> 24) & 0xff)
 
#define HIGHEST_TRANSFORMSTATE   WINED3D_TS_WORLD_MATRIX(255) /* Highest value in wined3d_transform_state. */
 
#define checkGLcall(A)
 
#define eps   1e-8f
 
#define GET_TEXCOORD_SIZE_FROM_FVF(d3dvtVertexType, tex_num)   (((((d3dvtVertexType) >> (16 + (2 * (tex_num)))) + 1) & 0x03) + 1)
 
#define STATE_RENDER(a)   (a)
 
#define STATE_IS_RENDER(a)   ((a) >= STATE_RENDER(1) && (a) <= STATE_RENDER(WINEHIGHEST_RENDER_STATE))
 
#define STATE_TEXTURESTAGE(stage, num)   (STATE_RENDER(WINEHIGHEST_RENDER_STATE) + 1 + (stage) * (WINED3D_HIGHEST_TEXTURE_STATE + 1) + (num))
 
#define STATE_IS_TEXTURESTAGE(a)   ((a) >= STATE_TEXTURESTAGE(0, 1) && (a) <= STATE_TEXTURESTAGE(MAX_TEXTURES - 1, WINED3D_HIGHEST_TEXTURE_STATE))
 
#define STATE_SAMPLER(num)   (STATE_TEXTURESTAGE(MAX_TEXTURES - 1, WINED3D_HIGHEST_TEXTURE_STATE) + 1 + (num))
 
#define STATE_IS_SAMPLER(num)   ((num) >= STATE_SAMPLER(0) && (num) <= STATE_SAMPLER(MAX_COMBINED_SAMPLERS - 1))
 
#define STATE_GRAPHICS_SHADER(a)   (STATE_SAMPLER(MAX_COMBINED_SAMPLERS) + (a))
 
#define STATE_IS_GRAPHICS_SHADER(a)   ((a) >= STATE_GRAPHICS_SHADER(0) && (a) < STATE_GRAPHICS_SHADER(WINED3D_SHADER_TYPE_GRAPHICS_COUNT))
 
#define STATE_GRAPHICS_CONSTANT_BUFFER(a)   (STATE_GRAPHICS_SHADER(WINED3D_SHADER_TYPE_GRAPHICS_COUNT) + (a))
 
#define STATE_IS_GRAPHICS_CONSTANT_BUFFER(a)
 
#define STATE_GRAPHICS_SHADER_RESOURCE_BINDING   (STATE_GRAPHICS_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GRAPHICS_COUNT))
 
#define STATE_IS_GRAPHICS_SHADER_RESOURCE_BINDING(a)   ((a) == STATE_GRAPHICS_SHADER_RESOURCE_BINDING)
 
#define STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING   (STATE_GRAPHICS_SHADER_RESOURCE_BINDING + 1)
 
#define STATE_IS_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING(a)   ((a) == STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING)
 
#define STATE_TRANSFORM(a)   (STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING + (a))
 
#define STATE_IS_TRANSFORM(a)   ((a) >= STATE_TRANSFORM(1) && (a) <= STATE_TRANSFORM(WINED3D_TS_WORLD_MATRIX(255)))
 
#define STATE_STREAMSRC   (STATE_TRANSFORM(WINED3D_TS_WORLD_MATRIX(255)) + 1)
 
#define STATE_IS_STREAMSRC(a)   ((a) == STATE_STREAMSRC)
 
#define STATE_INDEXBUFFER   (STATE_STREAMSRC + 1)
 
#define STATE_IS_INDEXBUFFER(a)   ((a) == STATE_INDEXBUFFER)
 
#define STATE_VDECL   (STATE_INDEXBUFFER + 1)
 
#define STATE_IS_VDECL(a)   ((a) == STATE_VDECL)
 
#define STATE_VIEWPORT   (STATE_VDECL + 1)
 
#define STATE_IS_VIEWPORT(a)   ((a) == STATE_VIEWPORT)
 
#define STATE_LIGHT_TYPE   (STATE_VIEWPORT + 1)
 
#define STATE_IS_LIGHT_TYPE(a)   ((a) == STATE_LIGHT_TYPE)
 
#define STATE_ACTIVELIGHT(a)   (STATE_LIGHT_TYPE + 1 + (a))
 
#define STATE_IS_ACTIVELIGHT(a)   ((a) >= STATE_ACTIVELIGHT(0) && (a) < STATE_ACTIVELIGHT(MAX_ACTIVE_LIGHTS))
 
#define STATE_SCISSORRECT   (STATE_ACTIVELIGHT(MAX_ACTIVE_LIGHTS - 1) + 1)
 
#define STATE_IS_SCISSORRECT(a)   ((a) == STATE_SCISSORRECT)
 
#define STATE_CLIPPLANE(a)   (STATE_SCISSORRECT + 1 + (a))
 
#define STATE_IS_CLIPPLANE(a)   ((a) >= STATE_CLIPPLANE(0) && (a) <= STATE_CLIPPLANE(MAX_CLIP_DISTANCES - 1))
 
#define STATE_MATERIAL   (STATE_CLIPPLANE(MAX_CLIP_DISTANCES))
 
#define STATE_IS_MATERIAL(a)   ((a) == STATE_MATERIAL)
 
#define STATE_FRONTFACE   (STATE_MATERIAL + 1)
 
#define STATE_IS_FRONTFACE(a)   ((a) == STATE_FRONTFACE)
 
#define STATE_POINTSPRITECOORDORIGIN   (STATE_FRONTFACE + 1)
 
#define STATE_IS_POINTSPRITECOORDORIGIN(a)   ((a) == STATE_POINTSPRITECOORDORIGIN)
 
#define STATE_BASEVERTEXINDEX   (STATE_POINTSPRITECOORDORIGIN + 1)
 
#define STATE_IS_BASEVERTEXINDEX(a)   ((a) == STATE_BASEVERTEXINDEX)
 
#define STATE_FRAMEBUFFER   (STATE_BASEVERTEXINDEX + 1)
 
#define STATE_IS_FRAMEBUFFER(a)   ((a) == STATE_FRAMEBUFFER)
 
#define STATE_POINT_ENABLE   (STATE_FRAMEBUFFER + 1)
 
#define STATE_IS_POINT_ENABLE(a)   ((a) == STATE_POINT_ENABLE)
 
#define STATE_COLOR_KEY   (STATE_POINT_ENABLE + 1)
 
#define STATE_IS_COLOR_KEY(a)   ((a) == STATE_COLOR_KEY)
 
#define STATE_STREAM_OUTPUT   (STATE_COLOR_KEY + 1)
 
#define STATE_IS_STREAM_OUTPUT(a)   ((a) == STATE_STREAM_OUTPUT)
 
#define STATE_BLEND   (STATE_STREAM_OUTPUT + 1)
 
#define STATE_IS_BLEND(a)   ((a) == STATE_BLEND)
 
#define STATE_COMPUTE_OFFSET   (STATE_BLEND + 1)
 
#define STATE_COMPUTE_SHADER   (STATE_COMPUTE_OFFSET)
 
#define STATE_IS_COMPUTE_SHADER(a)   ((a) == STATE_COMPUTE_SHADER)
 
#define STATE_COMPUTE_CONSTANT_BUFFER   (STATE_COMPUTE_SHADER + 1)
 
#define STATE_IS_COMPUTE_CONSTANT_BUFFER(a)   ((a) == STATE_COMPUTE_CONSTANT_BUFFER)
 
#define STATE_COMPUTE_SHADER_RESOURCE_BINDING   (STATE_COMPUTE_CONSTANT_BUFFER + 1)
 
#define STATE_IS_COMPUTE_SHADER_RESOURCE_BINDING(a)   ((a) == STATE_COMPUTE_SHADER_RESOURCE_BINDING)
 
#define STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING   (STATE_COMPUTE_SHADER_RESOURCE_BINDING + 1)
 
#define STATE_IS_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING(a)   ((a) == STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING)
 
#define STATE_COMPUTE_HIGHEST   (STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING)
 
#define STATE_HIGHEST   (STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING)
 
#define STATE_IS_COMPUTE(a)   ((a) >= STATE_COMPUTE_OFFSET && (a) <= STATE_COMPUTE_HIGHEST)
 
#define STATE_COMPUTE_COUNT   (STATE_COMPUTE_HIGHEST - STATE_COMPUTE_OFFSET + 1)
 
#define STATE_SHADER(a)   ((a) != WINED3D_SHADER_TYPE_COMPUTE ? STATE_GRAPHICS_SHADER(a) : STATE_COMPUTE_SHADER)
 
#define STATE_CONSTANT_BUFFER(a)   ((a) != WINED3D_SHADER_TYPE_COMPUTE ? STATE_GRAPHICS_CONSTANT_BUFFER(a) : STATE_COMPUTE_CONSTANT_BUFFER)
 
#define STATE_UNORDERED_ACCESS_VIEW_BINDING(a)
 
#define MAX_GL_FRAGMENT_SAMPLERS   32
 
#define WINED3D_FRAGMENT_CAP_PROJ_CONTROL   0x00000001
 
#define WINED3D_FRAGMENT_CAP_SRGB_WRITE   0x00000002
 
#define WINED3D_FRAGMENT_CAP_COLOR_KEY   0x00000004
 
#define GL_EXT_EMUL_ARB_MULTITEXTURE   0x00000001
 
#define GL_EXT_EMUL_EXT_FOG_COORD   0x00000002
 
#define ARG_UNUSED   0xff
 
#define WINED3D_FFP_TCI_SHIFT   16
 
#define WINED3D_FFP_TCI_MASK   0xffu
 
#define WINED3D_FFP_LIGHT_TYPE_SHIFT(idx)   (3 * (idx))
 
#define WINED3D_FFP_LIGHT_TYPE_MASK   0x7u
 
#define WINED3D_STATE_NO_REF   0x00000001
 
#define WINED3D_STATE_INIT_DEFAULT   0x00000002
 
#define LIGHTMAP_SIZE   43
 
#define LIGHTMAP_HASHFUNC(x)   ((x) % LIGHTMAP_SIZE)
 
#define IS_DUAL_SOURCE_BLEND(x)   ((x) >= WINED3D_BLEND_SRC1COLOR && (x) <= WINED3D_BLEND_INVSRC1ALPHA)
 
#define WINED3D_UNMAPPED_STAGE   ~0u
 
#define WINED3DCREATE_MULTITHREADED   0x00000004
 
#define RESOURCE_ALIGNMENT   16
 
#define WINED3D_CONSTANT_BUFFER_ALIGNMENT   16
 
#define WINED3D_TEXTURE_COND_NP2   0x00000001
 
#define WINED3D_TEXTURE_COND_NP2_EMULATED   0x00000002
 
#define WINED3D_TEXTURE_POW2_MAT_IDENT   0x00000004
 
#define WINED3D_TEXTURE_IS_SRGB   0x00000008
 
#define WINED3D_TEXTURE_RGB_ALLOCATED   0x00000010
 
#define WINED3D_TEXTURE_RGB_VALID   0x00000020
 
#define WINED3D_TEXTURE_SRGB_ALLOCATED   0x00000040
 
#define WINED3D_TEXTURE_SRGB_VALID   0x00000080
 
#define WINED3D_TEXTURE_CONVERTED   0x00000100
 
#define WINED3D_TEXTURE_PIN_SYSMEM   0x00000200
 
#define WINED3D_TEXTURE_NORMALIZED_COORDS   0x00000400
 
#define WINED3D_TEXTURE_GET_DC_LENIENT   0x00000800
 
#define WINED3D_TEXTURE_DC_IN_USE   0x00001000
 
#define WINED3D_TEXTURE_DISCARD   0x00002000
 
#define WINED3D_TEXTURE_GET_DC   0x00004000
 
#define WINED3D_TEXTURE_GENERATE_MIPMAPS   0x00008000
 
#define WINED3D_TEXTURE_ASYNC_COLOR_KEY   0x00000001
 
#define WINED3D_LOCATION_DISCARDED   0x00000001
 
#define WINED3D_LOCATION_SYSMEM   0x00000002
 
#define WINED3D_LOCATION_USER_MEMORY   0x00000004
 
#define WINED3D_LOCATION_BUFFER   0x00000008
 
#define WINED3D_LOCATION_TEXTURE_RGB   0x00000010
 
#define WINED3D_LOCATION_TEXTURE_SRGB   0x00000020
 
#define WINED3D_LOCATION_DRAWABLE   0x00000040
 
#define WINED3D_LOCATION_RB_MULTISAMPLE   0x00000080
 
#define WINED3D_LOCATION_RB_RESOLVED   0x00000100
 
#define WINED3D_FBO_ENTRY_FLAG_ATTACHED   0x1
 
#define WINED3D_FBO_ENTRY_FLAG_DEPTH   0x2
 
#define WINED3D_FBO_ENTRY_FLAG_STENCIL   0x4
 
#define WINED3D_CS_QUERY_POLL_INTERVAL   10u
 
#define WINED3D_CS_QUEUE_SIZE   0x100000u
 
#define WINED3D_CS_SPIN_COUNT   10000000u
 
#define PRINTF_ATTR(fmt, args)
 
#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING   0x00000001
 
#define WINED3DFMT_FLAG_FILTERING   0x00000002
 
#define WINED3DFMT_FLAG_DEPTH   0x00000004
 
#define WINED3DFMT_FLAG_STENCIL   0x00000008
 
#define WINED3DFMT_FLAG_RENDERTARGET   0x00000010
 
#define WINED3DFMT_FLAG_EXTENSION   0x00000020
 
#define WINED3DFMT_FLAG_FBO_ATTACHABLE   0x00000040
 
#define WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB   0x00000080
 
#define WINED3DFMT_FLAG_FLOAT   0x00000200
 
#define WINED3DFMT_FLAG_BUMPMAP   0x00000400
 
#define WINED3DFMT_FLAG_SRGB_READ   0x00000800
 
#define WINED3DFMT_FLAG_SRGB_WRITE   0x00001000
 
#define WINED3DFMT_FLAG_VTF   0x00002000
 
#define WINED3DFMT_FLAG_SHADOW   0x00004000
 
#define WINED3DFMT_FLAG_COMPRESSED   0x00008000
 
#define WINED3DFMT_FLAG_BROKEN_PITCH   0x00010000
 
#define WINED3DFMT_FLAG_BLOCKS   0x00020000
 
#define WINED3DFMT_FLAG_HEIGHT_SCALE   0x00040000
 
#define WINED3DFMT_FLAG_TEXTURE   0x00080000
 
#define WINED3DFMT_FLAG_BLOCKS_NO_VERIFY   0x00100000
 
#define WINED3DFMT_FLAG_INTEGER   0x00200000
 
#define WINED3DFMT_FLAG_GEN_MIPMAP   0x00400000
 
#define WINED3D_OPENGL_WINDOW_CLASS_NAME   "WineD3D_OpenGL"
 

Typedefs

typedef void(WINE_GLAPIwined3d_ffp_attrib_func) (const void *data)
 
typedef void(WINE_GLAPIwined3d_ffp_texcoord_func) (GLenum unit, const void *data)
 
typedef void(WINE_GLAPIwined3d_generic_attrib_func) (GLuint idx, const void *data)
 
typedef void(* SHADER_HANDLER) (const struct wined3d_shader_instruction *)
 
typedef void(* APPLYSTATEFUNC) (struct wined3d_context *ctx, const struct wined3d_state *state, DWORD state_id)
 

Enumerations

enum  wined3d_ffp_idx {
  WINED3D_FFP_POSITION = 0, WINED3D_FFP_BLENDWEIGHT = 1, WINED3D_FFP_BLENDINDICES = 2, WINED3D_FFP_NORMAL = 3,
  WINED3D_FFP_PSIZE = 4, WINED3D_FFP_DIFFUSE = 5, WINED3D_FFP_SPECULAR = 6, WINED3D_FFP_TEXCOORD0 = 7,
  WINED3D_FFP_TEXCOORD1 = 8, WINED3D_FFP_TEXCOORD2 = 9, WINED3D_FFP_TEXCOORD3 = 10, WINED3D_FFP_TEXCOORD4 = 11,
  WINED3D_FFP_TEXCOORD5 = 12, WINED3D_FFP_TEXCOORD6 = 13, WINED3D_FFP_TEXCOORD7 = 14, WINED3D_FFP_ATTRIBS_COUNT = 15
}
 
enum  wined3d_ffp_emit_idx {
  WINED3D_FFP_EMIT_FLOAT1, WINED3D_FFP_EMIT_FLOAT2, WINED3D_FFP_EMIT_FLOAT3, WINED3D_FFP_EMIT_FLOAT4,
  WINED3D_FFP_EMIT_D3DCOLOR, WINED3D_FFP_EMIT_UBYTE4, WINED3D_FFP_EMIT_SHORT2, WINED3D_FFP_EMIT_SHORT4,
  WINED3D_FFP_EMIT_UBYTE4N, WINED3D_FFP_EMIT_SHORT2N, WINED3D_FFP_EMIT_SHORT4N, WINED3D_FFP_EMIT_USHORT2N,
  WINED3D_FFP_EMIT_USHORT4N, WINED3D_FFP_EMIT_UDEC3, WINED3D_FFP_EMIT_DEC3N, WINED3D_FFP_EMIT_FLOAT16_2,
  WINED3D_FFP_EMIT_FLOAT16_4, WINED3D_FFP_EMIT_INVALID, WINED3D_FFP_EMIT_COUNT
}
 
enum  fixup_channel_source {
  CHANNEL_SOURCE_ZERO = 0, CHANNEL_SOURCE_ONE = 1, CHANNEL_SOURCE_X = 2, CHANNEL_SOURCE_Y = 3,
  CHANNEL_SOURCE_Z = 4, CHANNEL_SOURCE_W = 5, CHANNEL_SOURCE_COMPLEX0 = 6, CHANNEL_SOURCE_COMPLEX1 = 7
}
 
enum  complex_fixup {
  COMPLEX_FIXUP_NONE = 0, COMPLEX_FIXUP_YUY2 = 1, COMPLEX_FIXUP_UYVY = 2, COMPLEX_FIXUP_YV12 = 3,
  COMPLEX_FIXUP_P8 = 4, COMPLEX_FIXUP_NV12 = 5
}
 
enum  wined3d_shader_resource_type {
  WINED3D_SHADER_RESOURCE_NONE, WINED3D_SHADER_RESOURCE_BUFFER, WINED3D_SHADER_RESOURCE_TEXTURE_1D, WINED3D_SHADER_RESOURCE_TEXTURE_2D,
  WINED3D_SHADER_RESOURCE_TEXTURE_2DMS, WINED3D_SHADER_RESOURCE_TEXTURE_3D, WINED3D_SHADER_RESOURCE_TEXTURE_CUBE, WINED3D_SHADER_RESOURCE_TEXTURE_1DARRAY,
  WINED3D_SHADER_RESOURCE_TEXTURE_2DARRAY, WINED3D_SHADER_RESOURCE_TEXTURE_2DMSARRAY, WINED3D_SHADER_RESOURCE_TEXTURE_CUBEARRAY
}
 
enum  wined3d_shader_register_type {
  WINED3DSPR_TEMP = 0, WINED3DSPR_INPUT = 1, WINED3DSPR_CONST = 2, WINED3DSPR_ADDR = 3,
  WINED3DSPR_TEXTURE = 3, WINED3DSPR_RASTOUT = 4, WINED3DSPR_ATTROUT = 5, WINED3DSPR_TEXCRDOUT = 6,
  WINED3DSPR_OUTPUT = 6, WINED3DSPR_CONSTINT = 7, WINED3DSPR_COLOROUT = 8, WINED3DSPR_DEPTHOUT = 9,
  WINED3DSPR_SAMPLER = 10, WINED3DSPR_CONST2 = 11, WINED3DSPR_CONST3 = 12, WINED3DSPR_CONST4 = 13,
  WINED3DSPR_CONSTBOOL = 14, WINED3DSPR_LOOP = 15, WINED3DSPR_TEMPFLOAT16 = 16, WINED3DSPR_MISCTYPE = 17,
  WINED3DSPR_LABEL = 18, WINED3DSPR_PREDICATE = 19, WINED3DSPR_IMMCONST, WINED3DSPR_CONSTBUFFER,
  WINED3DSPR_IMMCONSTBUFFER, WINED3DSPR_PRIMID, WINED3DSPR_NULL, WINED3DSPR_RESOURCE,
  WINED3DSPR_UAV, WINED3DSPR_OUTPOINTID, WINED3DSPR_FORKINSTID, WINED3DSPR_JOININSTID,
  WINED3DSPR_INCONTROLPOINT, WINED3DSPR_OUTCONTROLPOINT, WINED3DSPR_PATCHCONST, WINED3DSPR_TESSCOORD,
  WINED3DSPR_GROUPSHAREDMEM, WINED3DSPR_THREADID, WINED3DSPR_THREADGROUPID, WINED3DSPR_LOCALTHREADID,
  WINED3DSPR_LOCALTHREADINDEX, WINED3DSPR_IDXTEMP, WINED3DSPR_STREAM, WINED3DSPR_FUNCTIONBODY,
  WINED3DSPR_FUNCTIONPOINTER, WINED3DSPR_COVERAGE, WINED3DSPR_SAMPLEMASK, WINED3DSPR_GSINSTID,
  WINED3DSPR_DEPTHOUTGE, WINED3DSPR_DEPTHOUTLE
}
 
enum  wined3d_data_type {
  WINED3D_DATA_FLOAT, WINED3D_DATA_INT, WINED3D_DATA_RESOURCE, WINED3D_DATA_SAMPLER,
  WINED3D_DATA_UAV, WINED3D_DATA_UINT, WINED3D_DATA_UNORM, WINED3D_DATA_SNORM,
  WINED3D_DATA_OPAQUE
}
 
enum  wined3d_immconst_type { WINED3D_IMMCONST_SCALAR, WINED3D_IMMCONST_VEC4 }
 
enum  wined3d_shader_src_modifier {
  WINED3DSPSM_NONE = 0, WINED3DSPSM_NEG = 1, WINED3DSPSM_BIAS = 2, WINED3DSPSM_BIASNEG = 3,
  WINED3DSPSM_SIGN = 4, WINED3DSPSM_SIGNNEG = 5, WINED3DSPSM_COMP = 6, WINED3DSPSM_X2 = 7,
  WINED3DSPSM_X2NEG = 8, WINED3DSPSM_DZ = 9, WINED3DSPSM_DW = 10, WINED3DSPSM_ABS = 11,
  WINED3DSPSM_ABSNEG = 12, WINED3DSPSM_NOT = 13
}
 
enum  wined3d_shader_dst_modifier { WINED3DSPDM_NONE = 0, WINED3DSPDM_SATURATE = 1, WINED3DSPDM_PARTIALPRECISION = 2, WINED3DSPDM_MSAMPCENTROID = 4 }
 
enum  wined3d_shader_interpolation_mode {
  WINED3DSIM_NONE = 0, WINED3DSIM_CONSTANT = 1, WINED3DSIM_LINEAR = 2, WINED3DSIM_LINEAR_CENTROID = 3,
  WINED3DSIM_LINEAR_NOPERSPECTIVE = 4, WINED3DSIM_LINEAR_NOPERSPECTIVE_CENTROID = 5, WINED3DSIM_LINEAR_SAMPLE = 6, WINED3DSIM_LINEAR_NOPERSPECTIVE_SAMPLE = 7
}
 
enum  wined3d_shader_global_flags { WINED3DSGF_REFACTORING_ALLOWED = 0x1, WINED3DSGF_FORCE_EARLY_DEPTH_STENCIL = 0x4, WINED3DSGF_ENABLE_RAW_AND_STRUCTURED_BUFFERS = 0x8 }
 
enum  wined3d_shader_sync_flags { WINED3DSSF_THREAD_GROUP = 0x1, WINED3DSSF_GROUP_SHARED_MEMORY = 0x2 }
 
enum  wined3d_shader_uav_flags { WINED3DSUF_GLOBALLY_COHERENT = 0x2, WINED3DSUF_ORDER_PRESERVING_COUNTER = 0x100 }
 
enum  wined3d_tessellator_domain { WINED3D_TESSELLATOR_DOMAIN_LINE = 1, WINED3D_TESSELLATOR_DOMAIN_TRIANGLE = 2, WINED3D_TESSELLATOR_DOMAIN_QUAD = 3 }
 
enum  wined3d_tessellator_output_primitive { WINED3D_TESSELLATOR_OUTPUT_POINT = 1, WINED3D_TESSELLATOR_OUTPUT_LINE = 2, WINED3D_TESSELLATOR_OUTPUT_TRIANGLE_CW = 3, WINED3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW = 4 }
 
enum  wined3d_tessellator_partitioning { WINED3D_TESSELLATOR_PARTITIONING_INTEGER = 1, WINED3D_TESSELLATOR_PARTITIONING_POW2 = 2, WINED3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD = 3, WINED3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN = 4 }
 
enum  wined3d_shader_rel_op {
  WINED3D_SHADER_REL_OP_GT = 1, WINED3D_SHADER_REL_OP_EQ = 2, WINED3D_SHADER_REL_OP_GE = 3, WINED3D_SHADER_REL_OP_LT = 4,
  WINED3D_SHADER_REL_OP_NE = 5, WINED3D_SHADER_REL_OP_LE = 6
}
 
enum  wined3d_shader_conditional_op { WINED3D_SHADER_CONDITIONAL_OP_NZ = 0, WINED3D_SHADER_CONDITIONAL_OP_Z = 1 }
 
enum  WINED3D_SHADER_INSTRUCTION_HANDLER {
  WINED3DSIH_ABS, WINED3DSIH_ADD, WINED3DSIH_AND, WINED3DSIH_ATOMIC_AND,
  WINED3DSIH_ATOMIC_CMP_STORE, WINED3DSIH_ATOMIC_IADD, WINED3DSIH_ATOMIC_IMAX, WINED3DSIH_ATOMIC_IMIN,
  WINED3DSIH_ATOMIC_OR, WINED3DSIH_ATOMIC_UMAX, WINED3DSIH_ATOMIC_UMIN, WINED3DSIH_ATOMIC_XOR,
  WINED3DSIH_BEM, WINED3DSIH_BFI, WINED3DSIH_BFREV, WINED3DSIH_BREAK,
  WINED3DSIH_BREAKC, WINED3DSIH_BREAKP, WINED3DSIH_BUFINFO, WINED3DSIH_CALL,
  WINED3DSIH_CALLNZ, WINED3DSIH_CASE, WINED3DSIH_CMP, WINED3DSIH_CND,
  WINED3DSIH_CONTINUE, WINED3DSIH_CONTINUEP, WINED3DSIH_COUNTBITS, WINED3DSIH_CRS,
  WINED3DSIH_CUT, WINED3DSIH_CUT_STREAM, WINED3DSIH_DCL, WINED3DSIH_DCL_CONSTANT_BUFFER,
  WINED3DSIH_DCL_FUNCTION_BODY, WINED3DSIH_DCL_FUNCTION_TABLE, WINED3DSIH_DCL_GLOBAL_FLAGS, WINED3DSIH_DCL_GS_INSTANCES,
  WINED3DSIH_DCL_HS_FORK_PHASE_INSTANCE_COUNT, WINED3DSIH_DCL_HS_JOIN_PHASE_INSTANCE_COUNT, WINED3DSIH_DCL_HS_MAX_TESSFACTOR, WINED3DSIH_DCL_IMMEDIATE_CONSTANT_BUFFER,
  WINED3DSIH_DCL_INDEX_RANGE, WINED3DSIH_DCL_INDEXABLE_TEMP, WINED3DSIH_DCL_INPUT, WINED3DSIH_DCL_INPUT_CONTROL_POINT_COUNT,
  WINED3DSIH_DCL_INPUT_PRIMITIVE, WINED3DSIH_DCL_INPUT_PS, WINED3DSIH_DCL_INPUT_PS_SGV, WINED3DSIH_DCL_INPUT_PS_SIV,
  WINED3DSIH_DCL_INPUT_SGV, WINED3DSIH_DCL_INPUT_SIV, WINED3DSIH_DCL_INTERFACE, WINED3DSIH_DCL_OUTPUT,
  WINED3DSIH_DCL_OUTPUT_CONTROL_POINT_COUNT, WINED3DSIH_DCL_OUTPUT_SIV, WINED3DSIH_DCL_OUTPUT_TOPOLOGY, WINED3DSIH_DCL_RESOURCE_RAW,
  WINED3DSIH_DCL_RESOURCE_STRUCTURED, WINED3DSIH_DCL_SAMPLER, WINED3DSIH_DCL_STREAM, WINED3DSIH_DCL_TEMPS,
  WINED3DSIH_DCL_TESSELLATOR_DOMAIN, WINED3DSIH_DCL_TESSELLATOR_OUTPUT_PRIMITIVE, WINED3DSIH_DCL_TESSELLATOR_PARTITIONING, WINED3DSIH_DCL_TGSM_RAW,
  WINED3DSIH_DCL_TGSM_STRUCTURED, WINED3DSIH_DCL_THREAD_GROUP, WINED3DSIH_DCL_UAV_RAW, WINED3DSIH_DCL_UAV_STRUCTURED,
  WINED3DSIH_DCL_UAV_TYPED, WINED3DSIH_DCL_VERTICES_OUT, WINED3DSIH_DEF, WINED3DSIH_DEFAULT,
  WINED3DSIH_DEFB, WINED3DSIH_DEFI, WINED3DSIH_DIV, WINED3DSIH_DP2,
  WINED3DSIH_DP2ADD, WINED3DSIH_DP3, WINED3DSIH_DP4, WINED3DSIH_DST,
  WINED3DSIH_DSX, WINED3DSIH_DSX_COARSE, WINED3DSIH_DSX_FINE, WINED3DSIH_DSY,
  WINED3DSIH_DSY_COARSE, WINED3DSIH_DSY_FINE, WINED3DSIH_EVAL_SAMPLE_INDEX, WINED3DSIH_ELSE,
  WINED3DSIH_EMIT, WINED3DSIH_EMIT_STREAM, WINED3DSIH_ENDIF, WINED3DSIH_ENDLOOP,
  WINED3DSIH_ENDREP, WINED3DSIH_ENDSWITCH, WINED3DSIH_EQ, WINED3DSIH_EXP,
  WINED3DSIH_EXPP, WINED3DSIH_F16TOF32, WINED3DSIH_F32TOF16, WINED3DSIH_FCALL,
  WINED3DSIH_FIRSTBIT_HI, WINED3DSIH_FIRSTBIT_LO, WINED3DSIH_FIRSTBIT_SHI, WINED3DSIH_FRC,
  WINED3DSIH_FTOI, WINED3DSIH_FTOU, WINED3DSIH_GATHER4, WINED3DSIH_GATHER4_C,
  WINED3DSIH_GATHER4_PO, WINED3DSIH_GATHER4_PO_C, WINED3DSIH_GE, WINED3DSIH_HS_CONTROL_POINT_PHASE,
  WINED3DSIH_HS_DECLS, WINED3DSIH_HS_FORK_PHASE, WINED3DSIH_HS_JOIN_PHASE, WINED3DSIH_IADD,
  WINED3DSIH_IBFE, WINED3DSIH_IEQ, WINED3DSIH_IF, WINED3DSIH_IFC,
  WINED3DSIH_IGE, WINED3DSIH_ILT, WINED3DSIH_IMAD, WINED3DSIH_IMAX,
  WINED3DSIH_IMIN, WINED3DSIH_IMM_ATOMIC_ALLOC, WINED3DSIH_IMM_ATOMIC_AND, WINED3DSIH_IMM_ATOMIC_CMP_EXCH,
  WINED3DSIH_IMM_ATOMIC_CONSUME, WINED3DSIH_IMM_ATOMIC_EXCH, WINED3DSIH_IMM_ATOMIC_IADD, WINED3DSIH_IMM_ATOMIC_IMAX,
  WINED3DSIH_IMM_ATOMIC_IMIN, WINED3DSIH_IMM_ATOMIC_OR, WINED3DSIH_IMM_ATOMIC_UMAX, WINED3DSIH_IMM_ATOMIC_UMIN,
  WINED3DSIH_IMM_ATOMIC_XOR, WINED3DSIH_IMUL, WINED3DSIH_INE, WINED3DSIH_INEG,
  WINED3DSIH_ISHL, WINED3DSIH_ISHR, WINED3DSIH_ITOF, WINED3DSIH_LABEL,
  WINED3DSIH_LD, WINED3DSIH_LD2DMS, WINED3DSIH_LD_RAW, WINED3DSIH_LD_STRUCTURED,
  WINED3DSIH_LD_UAV_TYPED, WINED3DSIH_LIT, WINED3DSIH_LOD, WINED3DSIH_LOG,
  WINED3DSIH_LOGP, WINED3DSIH_LOOP, WINED3DSIH_LRP, WINED3DSIH_LT,
  WINED3DSIH_M3x2, WINED3DSIH_M3x3, WINED3DSIH_M3x4, WINED3DSIH_M4x3,
  WINED3DSIH_M4x4, WINED3DSIH_MAD, WINED3DSIH_MAX, WINED3DSIH_MIN,
  WINED3DSIH_MOV, WINED3DSIH_MOVA, WINED3DSIH_MOVC, WINED3DSIH_MUL,
  WINED3DSIH_NE, WINED3DSIH_NOP, WINED3DSIH_NOT, WINED3DSIH_NRM,
  WINED3DSIH_OR, WINED3DSIH_PHASE, WINED3DSIH_POW, WINED3DSIH_RCP,
  WINED3DSIH_REP, WINED3DSIH_RESINFO, WINED3DSIH_RET, WINED3DSIH_RETP,
  WINED3DSIH_ROUND_NE, WINED3DSIH_ROUND_NI, WINED3DSIH_ROUND_PI, WINED3DSIH_ROUND_Z,
  WINED3DSIH_RSQ, WINED3DSIH_SAMPLE, WINED3DSIH_SAMPLE_B, WINED3DSIH_SAMPLE_C,
  WINED3DSIH_SAMPLE_C_LZ, WINED3DSIH_SAMPLE_GRAD, WINED3DSIH_SAMPLE_INFO, WINED3DSIH_SAMPLE_LOD,
  WINED3DSIH_SAMPLE_POS, WINED3DSIH_SETP, WINED3DSIH_SGE, WINED3DSIH_SGN,
  WINED3DSIH_SINCOS, WINED3DSIH_SLT, WINED3DSIH_SQRT, WINED3DSIH_STORE_RAW,
  WINED3DSIH_STORE_STRUCTURED, WINED3DSIH_STORE_UAV_TYPED, WINED3DSIH_SUB, WINED3DSIH_SWAPC,
  WINED3DSIH_SWITCH, WINED3DSIH_SYNC, WINED3DSIH_TEX, WINED3DSIH_TEXBEM,
  WINED3DSIH_TEXBEML, WINED3DSIH_TEXCOORD, WINED3DSIH_TEXDEPTH, WINED3DSIH_TEXDP3,
  WINED3DSIH_TEXDP3TEX, WINED3DSIH_TEXKILL, WINED3DSIH_TEXLDD, WINED3DSIH_TEXLDL,
  WINED3DSIH_TEXM3x2DEPTH, WINED3DSIH_TEXM3x2PAD, WINED3DSIH_TEXM3x2TEX, WINED3DSIH_TEXM3x3,
  WINED3DSIH_TEXM3x3DIFF, WINED3DSIH_TEXM3x3PAD, WINED3DSIH_TEXM3x3SPEC, WINED3DSIH_TEXM3x3TEX,
  WINED3DSIH_TEXM3x3VSPEC, WINED3DSIH_TEXREG2AR, WINED3DSIH_TEXREG2GB, WINED3DSIH_TEXREG2RGB,
  WINED3DSIH_UBFE, WINED3DSIH_UDIV, WINED3DSIH_UGE, WINED3DSIH_ULT,
  WINED3DSIH_UMAX, WINED3DSIH_UMIN, WINED3DSIH_UMUL, WINED3DSIH_USHR,
  WINED3DSIH_UTOF, WINED3DSIH_XOR, WINED3DSIH_TABLE_SIZE
}
 
enum  wined3d_shader_type {
  WINED3D_SHADER_TYPE_PIXEL, WINED3D_SHADER_TYPE_VERTEX, WINED3D_SHADER_TYPE_GEOMETRY, WINED3D_SHADER_TYPE_HULL,
  WINED3D_SHADER_TYPE_DOMAIN, WINED3D_SHADER_TYPE_GRAPHICS_COUNT, WINED3D_SHADER_TYPE_COMPUTE = WINED3D_SHADER_TYPE_GRAPHICS_COUNT, WINED3D_SHADER_TYPE_COUNT
}
 
enum  wined3d_shader_input_sysval_semantic {
  WINED3D_SIV_POSITION = 1, WINED3D_SIV_CLIP_DISTANCE = 2, WINED3D_SIV_CULL_DISTANCE = 3, WINED3D_SIV_RENDER_TARGET_ARRAY_INDEX = 4,
  WINED3D_SIV_VIEWPORT_ARRAY_INDEX = 5, WINED3D_SIV_VERTEX_ID = 6, WINED3D_SIV_PRIMITIVE_ID = 7, WINED3D_SIV_INSTANCE_ID = 8,
  WINED3D_SIV_IS_FRONT_FACE = 9, WINED3D_SIV_SAMPLE_INDEX = 10, WINED3D_SIV_QUAD_U0_TESS_FACTOR = 11, WINED3D_SIV_QUAD_V0_TESS_FACTOR = 12,
  WINED3D_SIV_QUAD_U1_TESS_FACTOR = 13, WINED3D_SIV_QUAD_V1_TESS_FACTOR = 14, WINED3D_SIV_QUAD_U_INNER_TESS_FACTOR = 15, WINED3D_SIV_QUAD_V_INNER_TESS_FACTOR = 16,
  WINED3D_SIV_TRIANGLE_U_TESS_FACTOR = 17, WINED3D_SIV_TRIANGLE_V_TESS_FACTOR = 18, WINED3D_SIV_TRIANGLE_W_TESS_FACTOR = 19, WINED3D_SIV_TRIANGLE_INNER_TESS_FACTOR = 20,
  WINED3D_SIV_LINE_DETAIL_TESS_FACTOR = 21, WINED3D_SIV_LINE_DENSITY_TESS_FACTOR = 22
}
 
enum  wined3d_gl_resource_type {
  WINED3D_GL_RES_TYPE_TEX_1D = 0, WINED3D_GL_RES_TYPE_TEX_2D = 1, WINED3D_GL_RES_TYPE_TEX_3D = 2, WINED3D_GL_RES_TYPE_TEX_CUBE = 3,
  WINED3D_GL_RES_TYPE_TEX_RECT = 4, WINED3D_GL_RES_TYPE_BUFFER = 5, WINED3D_GL_RES_TYPE_RB = 6, WINED3D_GL_RES_TYPE_COUNT = 7
}
 
enum  vertexprocessing_mode { fixedfunction, vertexshader, pretransformed }
 
enum  wined3d_ffp_ps_fog_mode { WINED3D_FFP_PS_FOG_OFF, WINED3D_FFP_PS_FOG_LINEAR, WINED3D_FFP_PS_FOG_EXP, WINED3D_FFP_PS_FOG_EXP2 }
 
enum  wined3d_shader_tex_types { WINED3D_SHADER_TEX_2D = 0, WINED3D_SHADER_TEX_3D = 1, WINED3D_SHADER_TEX_CUBE = 2 }
 
enum  fog_src_type { VS_FOG_Z = 0, VS_FOG_COORD = 1 }
 
enum  wined3d_pipeline { WINED3D_PIPELINE_GRAPHICS, WINED3D_PIPELINE_COMPUTE, WINED3D_PIPELINE_COUNT }
 
enum  fogsource { FOGSOURCE_FFP, FOGSOURCE_VS, FOGSOURCE_COORD }
 
enum  wined3d_fence_result {
  WINED3D_FENCE_OK, WINED3D_FENCE_WAITING, WINED3D_FENCE_NOT_STARTED, WINED3D_FENCE_WRONG_THREAD,
  WINED3D_FENCE_ERROR
}
 
enum  wined3d_query_state { QUERY_CREATED, QUERY_SIGNALLED, QUERY_BUILDING }
 
enum  wined3d_blit_op {
  WINED3D_BLIT_OP_COLOR_BLIT, WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST, WINED3D_BLIT_OP_COLOR_BLIT_CKEY, WINED3D_BLIT_OP_COLOR_FILL,
  WINED3D_BLIT_OP_DEPTH_FILL, WINED3D_BLIT_OP_DEPTH_BLIT, WINED3D_BLIT_OP_RAW_BLIT
}
 
enum  wined3d_pci_vendor {
  HW_VENDOR_SOFTWARE = 0x0000, HW_VENDOR_AMD = 0x1002, HW_VENDOR_NVIDIA = 0x10de, HW_VENDOR_VMWARE = 0x15ad,
  HW_VENDOR_INTEL = 0x8086
}
 
enum  wined3d_pci_device {
  CARD_WINE = 0x0000, CARD_AMD_RAGE_128PRO = 0x5246, CARD_AMD_RADEON_7200 = 0x5144, CARD_AMD_RADEON_8500 = 0x514c,
  CARD_AMD_RADEON_9500 = 0x4144, CARD_AMD_RADEON_XPRESS_200M = 0x5955, CARD_AMD_RADEON_X700 = 0x5e4c, CARD_AMD_RADEON_X1600 = 0x71c2,
  CARD_AMD_RADEON_HD2350 = 0x94c7, CARD_AMD_RADEON_HD2600 = 0x9581, CARD_AMD_RADEON_HD2900 = 0x9400, CARD_AMD_RADEON_HD3200 = 0x9620,
  CARD_AMD_RADEON_HD3850 = 0x9515, CARD_AMD_RADEON_HD4200M = 0x9712, CARD_AMD_RADEON_HD4350 = 0x954f, CARD_AMD_RADEON_HD4600 = 0x9495,
  CARD_AMD_RADEON_HD4700 = 0x944e, CARD_AMD_RADEON_HD4800 = 0x944c, CARD_AMD_RADEON_HD5400 = 0x68f9, CARD_AMD_RADEON_HD5600 = 0x68d8,
  CARD_AMD_RADEON_HD5700 = 0x68be, CARD_AMD_RADEON_HD5800 = 0x6898, CARD_AMD_RADEON_HD5900 = 0x689c, CARD_AMD_RADEON_HD6300 = 0x9803,
  CARD_AMD_RADEON_HD6400 = 0x6770, CARD_AMD_RADEON_HD6410D = 0x9644, CARD_AMD_RADEON_HD6480G = 0x9648, CARD_AMD_RADEON_HD6550D = 0x9640,
  CARD_AMD_RADEON_HD6600 = 0x6758, CARD_AMD_RADEON_HD6600M = 0x6741, CARD_AMD_RADEON_HD6700 = 0x68ba, CARD_AMD_RADEON_HD6800 = 0x6739,
  CARD_AMD_RADEON_HD6900 = 0x6719, CARD_AMD_RADEON_HD7660D = 0x9901, CARD_AMD_RADEON_HD7700 = 0x683d, CARD_AMD_RADEON_HD7800 = 0x6819,
  CARD_AMD_RADEON_HD7900 = 0x679a, CARD_AMD_RADEON_HD8600M = 0x6660, CARD_AMD_RADEON_HD8670 = 0x6610, CARD_AMD_RADEON_HD8770 = 0x665c,
  CARD_AMD_RADEON_R3 = 0x9830, CARD_AMD_RADEON_R7 = 0x130f, CARD_AMD_RADEON_R9_285 = 0x6939, CARD_AMD_RADEON_R9_290 = 0x67b1,
  CARD_AMD_RADEON_R9_FURY = 0x7300, CARD_AMD_RADEON_RX_460 = 0x67ef, CARD_AMD_RADEON_RX_480 = 0x67df, CARD_NVIDIA_RIVA_128 = 0x0018,
  CARD_NVIDIA_RIVA_TNT = 0x0020, CARD_NVIDIA_RIVA_TNT2 = 0x0028, CARD_NVIDIA_GEFORCE = 0x0100, CARD_NVIDIA_GEFORCE2_MX = 0x0110,
  CARD_NVIDIA_GEFORCE2 = 0x0150, CARD_NVIDIA_GEFORCE3 = 0x0200, CARD_NVIDIA_GEFORCE4_MX = 0x0170, CARD_NVIDIA_GEFORCE4_TI4200 = 0x0253,
  CARD_NVIDIA_GEFORCEFX_5200 = 0x0320, CARD_NVIDIA_GEFORCEFX_5600 = 0x0312, CARD_NVIDIA_GEFORCEFX_5800 = 0x0302, CARD_NVIDIA_GEFORCE_6200 = 0x014f,
  CARD_NVIDIA_GEFORCE_6600GT = 0x0140, CARD_NVIDIA_GEFORCE_6800 = 0x0041, CARD_NVIDIA_GEFORCE_7300 = 0x01d7, CARD_NVIDIA_GEFORCE_7400 = 0x01d8,
  CARD_NVIDIA_GEFORCE_7600 = 0x0391, CARD_NVIDIA_GEFORCE_7800GT = 0x0092, CARD_NVIDIA_GEFORCE_8200 = 0x0849, CARD_NVIDIA_GEFORCE_8300GS = 0x0423,
  CARD_NVIDIA_GEFORCE_8400GS = 0x0404, CARD_NVIDIA_GEFORCE_8500GT = 0x0421, CARD_NVIDIA_GEFORCE_8600GT = 0x0402, CARD_NVIDIA_GEFORCE_8600MGT = 0x0407,
  CARD_NVIDIA_GEFORCE_8800GTS = 0x0193, CARD_NVIDIA_GEFORCE_8800GTX = 0x0191, CARD_NVIDIA_GEFORCE_9200 = 0x086d, CARD_NVIDIA_GEFORCE_9300 = 0x086c,
  CARD_NVIDIA_GEFORCE_9400M = 0x0863, CARD_NVIDIA_GEFORCE_9400GT = 0x042c, CARD_NVIDIA_GEFORCE_9500GT = 0x0640, CARD_NVIDIA_GEFORCE_9600GT = 0x0622,
  CARD_NVIDIA_GEFORCE_9700MGT = 0x064a, CARD_NVIDIA_GEFORCE_9800GT = 0x0614, CARD_NVIDIA_GEFORCE_210 = 0x0a23, CARD_NVIDIA_GEFORCE_GT220 = 0x0a20,
  CARD_NVIDIA_GEFORCE_GT240 = 0x0ca3, CARD_NVIDIA_GEFORCE_GTS250 = 0x0615, CARD_NVIDIA_GEFORCE_GTX260 = 0x05e2, CARD_NVIDIA_GEFORCE_GTX275 = 0x05e6,
  CARD_NVIDIA_GEFORCE_GTX280 = 0x05e1, CARD_NVIDIA_GEFORCE_315M = 0x0a7a, CARD_NVIDIA_GEFORCE_320M = 0x08a3, CARD_NVIDIA_GEFORCE_GT320M = 0x0a2d,
  CARD_NVIDIA_GEFORCE_GT325M = 0x0a35, CARD_NVIDIA_GEFORCE_GT330 = 0x0ca0, CARD_NVIDIA_GEFORCE_GTS350M = 0x0cb0, CARD_NVIDIA_GEFORCE_410M = 0x1055,
  CARD_NVIDIA_GEFORCE_GT420 = 0x0de2, CARD_NVIDIA_GEFORCE_GT425M = 0x0df0, CARD_NVIDIA_GEFORCE_GT430 = 0x0de1, CARD_NVIDIA_GEFORCE_GT440 = 0x0de0,
  CARD_NVIDIA_GEFORCE_GTS450 = 0x0dc4, CARD_NVIDIA_GEFORCE_GTX460 = 0x0e22, CARD_NVIDIA_GEFORCE_GTX460M = 0x0dd1, CARD_NVIDIA_GEFORCE_GTX465 = 0x06c4,
  CARD_NVIDIA_GEFORCE_GTX470 = 0x06cd, CARD_NVIDIA_GEFORCE_GTX480 = 0x06c0, CARD_NVIDIA_GEFORCE_GT520 = 0x1040, CARD_NVIDIA_GEFORCE_GT525M = 0x0dec,
  CARD_NVIDIA_GEFORCE_GT540M = 0x0df4, CARD_NVIDIA_GEFORCE_GTX550 = 0x1244, CARD_NVIDIA_GEFORCE_GT555M = 0x04b8, CARD_NVIDIA_GEFORCE_GTX560TI = 0x1200,
  CARD_NVIDIA_GEFORCE_GTX560M = 0x1251, CARD_NVIDIA_GEFORCE_GTX560 = 0x1201, CARD_NVIDIA_GEFORCE_GTX570 = 0x1081, CARD_NVIDIA_GEFORCE_GTX580 = 0x1080,
  CARD_NVIDIA_GEFORCE_GT610 = 0x104a, CARD_NVIDIA_GEFORCE_GT630 = 0x0f00, CARD_NVIDIA_GEFORCE_GT630M = 0x0de9, CARD_NVIDIA_GEFORCE_GT640M = 0x0fd2,
  CARD_NVIDIA_GEFORCE_GT650M = 0x0fd1, CARD_NVIDIA_GEFORCE_GTX650 = 0x0fc6, CARD_NVIDIA_GEFORCE_GTX650TI = 0x11c6, CARD_NVIDIA_GEFORCE_GTX660 = 0x11c0,
  CARD_NVIDIA_GEFORCE_GTX660M = 0x0fd4, CARD_NVIDIA_GEFORCE_GTX660TI = 0x1183, CARD_NVIDIA_GEFORCE_GTX670 = 0x1189, CARD_NVIDIA_GEFORCE_GTX670MX = 0x11a1,
  CARD_NVIDIA_GEFORCE_GTX675MX = 0x11a7, CARD_NVIDIA_GEFORCE_GTX680 = 0x1180, CARD_NVIDIA_GEFORCE_GTX690 = 0x1188, CARD_NVIDIA_GEFORCE_GT730 = 0x1287,
  CARD_NVIDIA_GEFORCE_GT730M = 0x0fe1, CARD_NVIDIA_GEFORCE_GT740M = 0x1292, CARD_NVIDIA_GEFORCE_GT750M = 0x0fe9, CARD_NVIDIA_GEFORCE_GTX750 = 0x1381,
  CARD_NVIDIA_GEFORCE_GTX750TI = 0x1380, CARD_NVIDIA_GEFORCE_GTX760 = 0x1187, CARD_NVIDIA_GEFORCE_GTX760TI = 0x1193, CARD_NVIDIA_GEFORCE_GTX765M = 0x11e2,
  CARD_NVIDIA_GEFORCE_GTX770M = 0x11e0, CARD_NVIDIA_GEFORCE_GTX770 = 0x1184, CARD_NVIDIA_GEFORCE_GTX780 = 0x1004, CARD_NVIDIA_GEFORCE_GTX780TI = 0x100a,
  CARD_NVIDIA_GEFORCE_GTXTITAN = 0x1005, CARD_NVIDIA_GEFORCE_GTXTITANB = 0x100c, CARD_NVIDIA_GEFORCE_GTXTITANX = 0x17c2, CARD_NVIDIA_GEFORCE_GTXTITANZ = 0x1001,
  CARD_NVIDIA_GEFORCE_820M = 0x0fed, CARD_NVIDIA_GEFORCE_830M = 0x1340, CARD_NVIDIA_GEFORCE_840M = 0x1341, CARD_NVIDIA_GEFORCE_845M = 0x1344,
  CARD_NVIDIA_GEFORCE_GTX850M = 0x1391, CARD_NVIDIA_GEFORCE_GTX860M = 0x1392, CARD_NVIDIA_GEFORCE_GTX870M = 0x1199, CARD_NVIDIA_GEFORCE_GTX880M = 0x1198,
  CARD_NVIDIA_GEFORCE_940M = 0x1347, CARD_NVIDIA_GEFORCE_GTX950 = 0x1402, CARD_NVIDIA_GEFORCE_GTX950M = 0x139a, CARD_NVIDIA_GEFORCE_GTX960 = 0x1401,
  CARD_NVIDIA_GEFORCE_GTX960M = 0x139b, CARD_NVIDIA_GEFORCE_GTX970 = 0x13c2, CARD_NVIDIA_GEFORCE_GTX970M = 0x13d8, CARD_NVIDIA_GEFORCE_GTX980 = 0x13c0,
  CARD_NVIDIA_GEFORCE_GTX980TI = 0x17c8, CARD_NVIDIA_GEFORCE_GTX1050 = 0x1c81, CARD_NVIDIA_GEFORCE_GTX1060 = 0x1c03, CARD_NVIDIA_GEFORCE_GTX1070 = 0x1b81,
  CARD_NVIDIA_GEFORCE_GTX1080 = 0x1b80, CARD_NVIDIA_GEFORCE_GTX1080TI = 0x1b06, CARD_NVIDIA_TITANX_PASCAL = 0x1b00, CARD_VMWARE_SVGA3D = 0x0405,
  CARD_INTEL_830M = 0x3577, CARD_INTEL_855GM = 0x3582, CARD_INTEL_845G = 0x2562, CARD_INTEL_865G = 0x2572,
  CARD_INTEL_915G = 0x2582, CARD_INTEL_E7221G = 0x258a, CARD_INTEL_915GM = 0x2592, CARD_INTEL_945G = 0x2772,
  CARD_INTEL_945GM = 0x27a2, CARD_INTEL_945GME = 0x27ae, CARD_INTEL_Q35 = 0x29b2, CARD_INTEL_G33 = 0x29c2,
  CARD_INTEL_Q33 = 0x29d2, CARD_INTEL_PNVG = 0xa001, CARD_INTEL_PNVM = 0xa011, CARD_INTEL_965Q = 0x2992,
  CARD_INTEL_965G = 0x2982, CARD_INTEL_946GZ = 0x2972, CARD_INTEL_965GM = 0x2a02, CARD_INTEL_965GME = 0x2a12,
  CARD_INTEL_GM45 = 0x2a42, CARD_INTEL_IGD = 0x2e02, CARD_INTEL_Q45 = 0x2e12, CARD_INTEL_G45 = 0x2e22,
  CARD_INTEL_G41 = 0x2e32, CARD_INTEL_B43 = 0x2e92, CARD_INTEL_ILKD = 0x0042, CARD_INTEL_ILKM = 0x0046,
  CARD_INTEL_SNBD = 0x0122, CARD_INTEL_SNBM = 0x0126, CARD_INTEL_SNBS = 0x010a, CARD_INTEL_IVBD = 0x0162,
  CARD_INTEL_IVBM = 0x0166, CARD_INTEL_IVBS = 0x015a, CARD_INTEL_HWD = 0x0412, CARD_INTEL_HWM = 0x0416,
  CARD_INTEL_HD5000 = 0x0a26, CARD_INTEL_I5100_1 = 0x0a22, CARD_INTEL_I5100_2 = 0x0a2a, CARD_INTEL_I5100_3 = 0x0a2b,
  CARD_INTEL_I5100_4 = 0x0a2e, CARD_INTEL_IP5200_1 = 0x0d22, CARD_INTEL_IP5200_2 = 0x0d26, CARD_INTEL_IP5200_3 = 0x0d2a,
  CARD_INTEL_IP5200_4 = 0x0d2b, CARD_INTEL_IP5200_5 = 0x0d2e, CARD_INTEL_HD5300 = 0x161e, CARD_INTEL_HD5500 = 0x1616,
  CARD_INTEL_HD5600 = 0x1612, CARD_INTEL_HD6000 = 0x1626, CARD_INTEL_I6100 = 0x162b, CARD_INTEL_IP6200 = 0x1622,
  CARD_INTEL_IPP6300 = 0x162a, CARD_INTEL_HD510_1 = 0x1902, CARD_INTEL_HD510_2 = 0x1906, CARD_INTEL_HD510_3 = 0x190b,
  CARD_INTEL_HD515 = 0x191e, CARD_INTEL_HD520_1 = 0x1916, CARD_INTEL_HD520_2 = 0x1921, CARD_INTEL_HD530_1 = 0x1912,
  CARD_INTEL_HD530_2 = 0x191b, CARD_INTEL_HDP530 = 0x191d, CARD_INTEL_I540 = 0x1926, CARD_INTEL_I550 = 0x1927,
  CARD_INTEL_I555 = 0x192b, CARD_INTEL_IP555 = 0x192d, CARD_INTEL_IP580_1 = 0x1932, CARD_INTEL_IP580_2 = 0x193b,
  CARD_INTEL_IPP580_1 = 0x193a, CARD_INTEL_IPP580_2 = 0x193d
}
 
enum  projection_types { proj_none = 0, proj_count3 = 1, proj_count4 = 2 }
 
enum  dst_arg { resultreg = 0, tempreg = 1 }
 
enum  wined3d_ffp_vs_fog_mode { WINED3D_FFP_VS_FOG_OFF = 0, WINED3D_FFP_VS_FOG_FOGCOORD = 1, WINED3D_FFP_VS_FOG_DEPTH = 2, WINED3D_FFP_VS_FOG_RANGE = 3 }
 
enum  wined3d_cs_queue_id { WINED3D_CS_QUEUE_DEFAULT = 0, WINED3D_CS_QUEUE_MAP, WINED3D_CS_QUEUE_COUNT }
 
enum  wined3d_push_constants {
  WINED3D_PUSH_CONSTANTS_VS_F, WINED3D_PUSH_CONSTANTS_PS_F, WINED3D_PUSH_CONSTANTS_VS_I, WINED3D_PUSH_CONSTANTS_PS_I,
  WINED3D_PUSH_CONSTANTS_VS_B, WINED3D_PUSH_CONSTANTS_PS_B
}
 
enum  wined3d_buffer_conversion_type { CONV_NONE, CONV_D3DCOLOR, CONV_POSITIONT }
 

Functions

static struct color_fixup_desc create_color_fixup_desc (int sign0, enum fixup_channel_source src0, int sign1, enum fixup_channel_source src1, int sign2, enum fixup_channel_source src2, int sign3, enum fixup_channel_source src3)
 
static struct color_fixup_desc create_complex_fixup_desc (enum complex_fixup complex_fixup)
 
static BOOL is_identity_fixup (struct color_fixup_desc fixup)
 
static BOOL is_complex_fixup (struct color_fixup_desc fixup)
 
static BOOL is_scaling_fixup (struct color_fixup_desc fixup)
 
static BOOL is_same_fixup (struct color_fixup_desc f1, struct color_fixup_desc f2)
 
static enum complex_fixup get_complex_fixup (struct color_fixup_desc fixup)
 
GLenum wined3d_gl_compare_func (enum wined3d_cmp_func f) DECLSPEC_HIDDEN
 
static enum wined3d_cmp_func wined3d_sanitize_cmp_func (enum wined3d_cmp_func func)
 
static GLenum wined3d_gl_mag_filter (enum wined3d_texture_filter_type mag_filter)
 
static GLenum wined3d_gl_min_mip_filter (enum wined3d_texture_filter_type min_filter, enum wined3d_texture_filter_type mip_filter)
 
static float float_16_to_32 (const unsigned short *in)
 
static float float_24_to_32 (DWORD in)
 
static unsigned int wined3d_popcount (unsigned int x)
 
static void wined3d_pause (void)
 
static BOOL wined3d_shader_instruction_has_texel_offset (const struct wined3d_shader_instruction *ins)
 
static void wined3d_color_from_d3dcolor (struct wined3d_color *wined3d_color, DWORD d3d_color)
 
void wined3d_check_gl_call (const struct wined3d_gl_info *gl_info, const char *file, unsigned int line, const char *name) DECLSPEC_HIDDEN
 
static struct wined3d_const_bo_addresswined3d_const_bo_address (struct wined3d_bo_address *data)
 
void wined3d_stream_info_from_declaration (struct wined3d_stream_info *stream_info, const struct wined3d_state *state, const struct wined3d_gl_info *gl_info, const struct wined3d_d3d_info *d3d_info) DECLSPEC_HIDDEN
 
void draw_primitive (struct wined3d_device *device, const struct wined3d_state *state, const struct wined3d_draw_parameters *draw_parameters) DECLSPEC_HIDDEN
 
void dispatch_compute (struct wined3d_device *device, const struct wined3d_state *state, const struct wined3d_dispatch_parameters *dispatch_parameters) DECLSPEC_HIDDEN
 
DWORD get_flexible_vertex_size (DWORD d3dvtVertexType) DECLSPEC_HIDDEN
 
HRESULT wined3d_fence_create (struct wined3d_device *device, struct wined3d_fence **fence) DECLSPEC_HIDDEN
 
void wined3d_fence_destroy (struct wined3d_fence *fence) DECLSPEC_HIDDEN
 
void wined3d_fence_issue (struct wined3d_fence *fence, const struct wined3d_device *device) DECLSPEC_HIDDEN
 
enum wined3d_fence_result wined3d_fence_wait (const struct wined3d_fence *fence, const struct wined3d_device *device) DECLSPEC_HIDDEN
 
void context_alloc_timestamp_query (struct wined3d_context *context, struct wined3d_timestamp_query *query) DECLSPEC_HIDDEN
 
void context_free_timestamp_query (struct wined3d_timestamp_query *query) DECLSPEC_HIDDEN
 
void context_alloc_so_statistics_query (struct wined3d_context *context, struct wined3d_so_statistics_query *query) DECLSPEC_HIDDEN
 
void context_free_so_statistics_query (struct wined3d_so_statistics_query *query) DECLSPEC_HIDDEN
 
void context_alloc_pipeline_statistics_query (struct wined3d_context *context, struct wined3d_pipeline_statistics_query *query) DECLSPEC_HIDDEN
 
void context_free_pipeline_statistics_query (struct wined3d_pipeline_statistics_query *query) DECLSPEC_HIDDEN
 
HRESULT compile_state_table (struct StateEntry *StateTable, APPLYSTATEFUNC **dev_multistate_funcs, const struct wined3d_gl_info *gl_info, const struct wined3d_d3d_info *d3d_info, const struct wined3d_vertex_pipe_ops *vertex, const struct fragment_pipeline *fragment, const struct StateEntryTemplate *misc) DECLSPEC_HIDDEN
 
void wined3d_arbfp_blitter_create (struct wined3d_blitter **next, const struct wined3d_device *device) DECLSPEC_HIDDEN
 
struct wined3d_blitterwined3d_cpu_blitter_create (void) DECLSPEC_HIDDEN
 
void wined3d_fbo_blitter_create (struct wined3d_blitter **next, const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN
 
void wined3d_ffp_blitter_create (struct wined3d_blitter **next, const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN
 
void wined3d_raw_blitter_create (struct wined3d_blitter **next, const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN
 
BOOL wined3d_clip_blit (const RECT *clip_rect, RECT *clipped, RECT *other) DECLSPEC_HIDDEN
 
struct wined3d_contextcontext_acquire (const struct wined3d_device *device, struct wined3d_texture *texture, unsigned int sub_resource_idx) DECLSPEC_HIDDEN
 
void context_alloc_fence (struct wined3d_context *context, struct wined3d_fence *fence) DECLSPEC_HIDDEN
 
void context_alloc_occlusion_query (struct wined3d_context *context, struct wined3d_occlusion_query *query) DECLSPEC_HIDDEN
 
void context_apply_blit_state (struct wined3d_context *context, const struct wined3d_device *device) DECLSPEC_HIDDEN
 
BOOL context_apply_clear_state (struct wined3d_context *context, const struct wined3d_state *state, UINT rt_count, const struct wined3d_fb_state *fb) DECLSPEC_HIDDEN
 
void context_apply_fbo_state_blit (struct wined3d_context *context, GLenum target, struct wined3d_surface *render_target, struct wined3d_surface *depth_stencil, DWORD location) DECLSPEC_HIDDEN
 
void context_active_texture (struct wined3d_context *context, const struct wined3d_gl_info *gl_info, unsigned int unit) DECLSPEC_HIDDEN
 
void context_bind_bo (struct wined3d_context *context, GLenum binding, GLuint name) DECLSPEC_HIDDEN
 
void context_bind_dummy_textures (const struct wined3d_device *device, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
void context_bind_texture (struct wined3d_context *context, GLenum target, GLuint name) DECLSPEC_HIDDEN
 
void context_check_fbo_status (const struct wined3d_context *context, GLenum target) DECLSPEC_HIDDEN
 
void context_copy_bo_address (struct wined3d_context *context, const struct wined3d_bo_address *dst, GLenum dst_binding, const struct wined3d_bo_address *src, GLenum src_binding, size_t size) DECLSPEC_HIDDEN
 
struct wined3d_contextcontext_create (struct wined3d_swapchain *swapchain, struct wined3d_texture *target, const struct wined3d_format *ds_format) DECLSPEC_HIDDEN
 
HGLRC context_create_wgl_attribs (const struct wined3d_gl_info *gl_info, HDC hdc, HGLRC share_ctx) DECLSPEC_HIDDEN
 
void context_destroy (struct wined3d_device *device, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void context_enable_clip_distances (struct wined3d_context *context, unsigned int mask) DECLSPEC_HIDDEN
 
void context_end_transform_feedback (struct wined3d_context *context) DECLSPEC_HIDDEN
 
void context_free_fence (struct wined3d_fence *fence) DECLSPEC_HIDDEN
 
void context_free_occlusion_query (struct wined3d_occlusion_query *query) DECLSPEC_HIDDEN
 
struct wined3d_contextcontext_get_current (void) DECLSPEC_HIDDEN
 
GLenum context_get_offscreen_gl_buffer (const struct wined3d_context *context) DECLSPEC_HIDDEN
 
const DWORDcontext_get_tex_unit_mapping (const struct wined3d_context *context, const struct wined3d_shader_version *shader_version, unsigned int *base, unsigned int *count) DECLSPEC_HIDDEN
 
DWORD context_get_tls_idx (void) DECLSPEC_HIDDEN
 
void context_gl_resource_released (struct wined3d_device *device, GLuint name, BOOL rb_namespace) DECLSPEC_HIDDEN
 
void context_invalidate_compute_state (struct wined3d_context *context, DWORD state_id) DECLSPEC_HIDDEN
 
void context_invalidate_state (struct wined3d_context *context, DWORD state_id) DECLSPEC_HIDDEN
 
voidcontext_map_bo_address (struct wined3d_context *context, const struct wined3d_bo_address *data, size_t size, GLenum binding, DWORD flags) DECLSPEC_HIDDEN
 
struct wined3d_contextcontext_reacquire (const struct wined3d_device *device, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void context_release (struct wined3d_context *context) DECLSPEC_HIDDEN
 
void context_resource_released (const struct wined3d_device *device, struct wined3d_resource *resource, enum wined3d_resource_type type) DECLSPEC_HIDDEN
 
void context_restore (struct wined3d_context *context, struct wined3d_surface *restore) DECLSPEC_HIDDEN
 
BOOL context_set_current (struct wined3d_context *ctx) DECLSPEC_HIDDEN
 
void context_set_draw_buffer (struct wined3d_context *context, GLenum buffer) DECLSPEC_HIDDEN
 
void context_set_tls_idx (DWORD idx) DECLSPEC_HIDDEN
 
void context_state_drawbuf (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void context_state_fb (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void context_surface_update (struct wined3d_context *context, const struct wined3d_surface *surface) DECLSPEC_HIDDEN
 
void context_unmap_bo_address (struct wined3d_context *context, const struct wined3d_bo_address *data, GLenum binding) DECLSPEC_HIDDEN
 
void wined3d_gl_limits_get_texture_unit_range (const struct wined3d_gl_limits *gl_limits, enum wined3d_shader_type shader_type, unsigned int *base, unsigned int *count) DECLSPEC_HIDDEN
 
void wined3d_gl_limits_get_uniform_block_range (const struct wined3d_gl_limits *gl_limits, enum wined3d_shader_type shader_type, unsigned int *base, unsigned int *count) DECLSPEC_HIDDEN
 
BOOL wined3d_adapter_init_format_info (struct wined3d_adapter *adapter, struct wined3d_caps_gl_ctx *ctx) DECLSPEC_HIDDEN
 
UINT64 adapter_adjust_memory (struct wined3d_adapter *adapter, INT64 amount) DECLSPEC_HIDDEN
 
BOOL wined3d_caps_gl_ctx_test_viewport_subpixel_bits (struct wined3d_caps_gl_ctx *ctx) DECLSPEC_HIDDEN
 
void install_gl_compat_wrapper (struct wined3d_gl_info *gl_info, enum wined3d_gl_extension ext) DECLSPEC_HIDDEN
 
int wined3d_ffp_frag_program_key_compare (const void *key, const struct wine_rb_entry *entry) DECLSPEC_HIDDEN
 
int wined3d_ffp_vertex_program_key_compare (const void *key, const struct wine_rb_entry *entry) DECLSPEC_HIDDEN
 
unsigned int wined3d_max_compat_varyings (const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN
 
void gen_ffp_frag_op (const struct wined3d_context *context, const struct wined3d_state *state, struct ffp_frag_settings *settings, BOOL ignore_textype) DECLSPEC_HIDDEN
 
const struct ffp_frag_descfind_ffp_frag_shader (const struct wine_rb_tree *fragment_shaders, const struct ffp_frag_settings *settings) DECLSPEC_HIDDEN
 
void add_ffp_frag_shader (struct wine_rb_tree *shaders, struct ffp_frag_desc *desc) DECLSPEC_HIDDEN
 
void wined3d_ftoa (float value, char *s) DECLSPEC_HIDDEN
 
void wined3d_ffp_get_vs_settings (const struct wined3d_context *context, const struct wined3d_state *state, struct wined3d_ffp_vs_settings *settings) DECLSPEC_HIDDEN
 
HRESULT wined3d_init (struct wined3d *wined3d, DWORD flags) DECLSPEC_HIDDEN
 
BOOL wined3d_register_window (HWND window, struct wined3d_device *device) DECLSPEC_HIDDEN
 
void wined3d_unregister_window (HWND window) DECLSPEC_HIDDEN
 
static BOOL wined3d_dualblend_enabled (const struct wined3d_state *state, const struct wined3d_gl_info *gl_info)
 
void device_clear_render_targets (struct wined3d_device *device, UINT rt_count, const struct wined3d_fb_state *fb, UINT rect_count, const RECT *rects, const RECT *draw_rect, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil) DECLSPEC_HIDDEN
 
BOOL device_context_add (struct wined3d_device *device, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void device_context_remove (struct wined3d_device *device, struct wined3d_context *context) DECLSPEC_HIDDEN
 
HRESULT device_init (struct wined3d_device *device, struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, HWND focus_window, DWORD flags, BYTE surface_alignment, struct wined3d_device_parent *device_parent) DECLSPEC_HIDDEN
 
LRESULT device_process_message (struct wined3d_device *device, HWND window, BOOL unicode, UINT message, WPARAM wparam, LPARAM lparam, WNDPROC proc) DECLSPEC_HIDDEN
 
void device_resource_add (struct wined3d_device *device, struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
void device_resource_released (struct wined3d_device *device, struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
void device_invalidate_state (const struct wined3d_device *device, DWORD state) DECLSPEC_HIDDEN
 
static BOOL isStateDirty (const struct wined3d_context *context, DWORD state)
 
const charwined3d_debug_resource_access (DWORD access) DECLSPEC_HIDDEN
 
static BOOL wined3d_resource_access_is_managed (unsigned int access)
 
static ULONG wined3d_resource_incref (struct wined3d_resource *resource)
 
static ULONG wined3d_resource_decref (struct wined3d_resource *resource)
 
static void wined3d_resource_acquire (struct wined3d_resource *resource)
 
static void wined3d_resource_release (struct wined3d_resource *resource)
 
void resource_cleanup (struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
HRESULT resource_init (struct wined3d_resource *resource, struct wined3d_device *device, enum wined3d_resource_type type, const struct wined3d_format *format, enum wined3d_multisample_type multisample_type, unsigned int multisample_quality, unsigned int usage, unsigned int access, unsigned int width, unsigned int height, unsigned int depth, unsigned int size, void *parent, const struct wined3d_parent_ops *parent_ops, const struct wined3d_resource_ops *resource_ops) DECLSPEC_HIDDEN
 
void resource_unload (struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
BOOL wined3d_resource_allocate_sysmem (struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
void wined3d_resource_free_sysmem (struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
GLbitfield wined3d_resource_gl_map_flags (DWORD d3d_flags) DECLSPEC_HIDDEN
 
GLenum wined3d_resource_gl_legacy_map_flags (DWORD d3d_flags) DECLSPEC_HIDDEN
 
BOOL wined3d_resource_is_offscreen (struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
void wined3d_resource_update_draw_binding (struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
static struct wined3d_texturetexture_from_resource (struct wined3d_resource *resource)
 
static GLenum wined3d_texture_get_sub_resource_target (const struct wined3d_texture *texture, unsigned int sub_resource_idx)
 
static struct gl_texturewined3d_texture_get_gl_texture (struct wined3d_texture *texture, BOOL srgb)
 
static unsigned int wined3d_texture_get_level_width (const struct wined3d_texture *texture, unsigned int level)
 
static unsigned int wined3d_texture_get_level_height (const struct wined3d_texture *texture, unsigned int level)
 
static unsigned int wined3d_texture_get_level_depth (const struct wined3d_texture *texture, unsigned int level)
 
static unsigned int wined3d_texture_get_level_pow2_width (const struct wined3d_texture *texture, unsigned int level)
 
static unsigned int wined3d_texture_get_level_pow2_height (const struct wined3d_texture *texture, unsigned int level)
 
void wined3d_texture_apply_sampler_desc (struct wined3d_texture *texture, const struct wined3d_sampler_desc *sampler_desc, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
void wined3d_texture_bind (struct wined3d_texture *texture, struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN
 
void wined3d_texture_bind_and_dirtify (struct wined3d_texture *texture, struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN
 
HRESULT wined3d_texture_check_box_dimensions (const struct wined3d_texture *texture, unsigned int level, const struct wined3d_box *box) DECLSPEC_HIDDEN
 
GLenum wined3d_texture_get_gl_buffer (const struct wined3d_texture *texture) DECLSPEC_HIDDEN
 
void wined3d_texture_get_memory (struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_bo_address *data, DWORD locations) DECLSPEC_HIDDEN
 
void wined3d_texture_invalidate_location (struct wined3d_texture *texture, unsigned int sub_resource_idx, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_texture_load (struct wined3d_texture *texture, struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN
 
BOOL wined3d_texture_load_location (struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN
 
BOOL wined3d_texture_prepare_location (struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_texture_prepare_texture (struct wined3d_texture *texture, struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN
 
void wined3d_texture_set_map_binding (struct wined3d_texture *texture, DWORD map_binding) DECLSPEC_HIDDEN
 
void wined3d_texture_set_swapchain (struct wined3d_texture *texture, struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN
 
void wined3d_texture_upload_data (struct wined3d_texture *texture, unsigned int sub_resource_idx, const struct wined3d_context *context, const struct wined3d_box *box, const struct wined3d_const_bo_address *data, unsigned int row_pitch, unsigned int slice_pitch) DECLSPEC_HIDDEN
 
void wined3d_texture_validate_location (struct wined3d_texture *texture, unsigned int sub_resource_idx, DWORD location) DECLSPEC_HIDDEN
 
const charwined3d_debug_location (DWORD location) DECLSPEC_HIDDEN
 
static unsigned int surface_get_sub_resource_idx (const struct wined3d_surface *surface)
 
static struct wined3d_texture_sub_resource * surface_get_sub_resource (struct wined3d_surface *surface)
 
HRESULT wined3d_surface_blt (struct wined3d_surface *dst_surface, const RECT *dst_rect, struct wined3d_surface *src_surface, const RECT *src_rect, DWORD flags, const struct wined3d_blt_fx *blt_fx, enum wined3d_texture_filter_type filter) DECLSPEC_HIDDEN
 
void surface_load_fb_texture (struct wined3d_surface *surface, BOOL srgb, struct wined3d_context *context) DECLSPEC_HIDDEN
 
BOOL surface_load_location (struct wined3d_surface *surface, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN
 
void surface_set_compatible_renderbuffer (struct wined3d_surface *surface, const struct wined3d_rendertarget_info *rt) DECLSPEC_HIDDEN
 
void surface_translate_drawable_coords (const struct wined3d_surface *surface, HWND window, RECT *rect) DECLSPEC_HIDDEN
 
void wined3d_surface_upload_data (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, const struct wined3d_format *format, const RECT *src_rect, UINT src_pitch, const POINT *dst_point, BOOL srgb, const struct wined3d_const_bo_address *data) DECLSPEC_HIDDEN
 
void draw_textured_quad (struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_context *context, const RECT *src_rect, const RECT *dst_rect, enum wined3d_texture_filter_type filter) DECLSPEC_HIDDEN
 
void wined3d_sampler_bind (struct wined3d_sampler *sampler, unsigned int unit, struct wined3d_texture *texture, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
void stateblock_init_contained_states (struct wined3d_stateblock *stateblock) DECLSPEC_HIDDEN
 
void state_cleanup (struct wined3d_state *state) DECLSPEC_HIDDEN
 
void wined3d_state_enable_light (struct wined3d_state *state, const struct wined3d_d3d_info *d3d_info, struct wined3d_light_info *light_info, BOOL enable) DECLSPEC_HIDDEN
 
struct wined3d_light_infowined3d_state_get_light (const struct wined3d_state *state, unsigned int idx) DECLSPEC_HIDDEN
 
void state_init (struct wined3d_state *state, struct wined3d_fb_state *fb, const struct wined3d_gl_info *gl_info, const struct wined3d_d3d_info *d3d_info, DWORD flags) DECLSPEC_HIDDEN
 
void state_unbind_resources (struct wined3d_state *state) DECLSPEC_HIDDEN
 
struct wined3d_cswined3d_cs_create (struct wined3d_device *device) DECLSPEC_HIDDEN
 
void wined3d_cs_destroy (struct wined3d_cs *cs) DECLSPEC_HIDDEN
 
void wined3d_cs_destroy_object (struct wined3d_cs *cs, void(*callback)(void *object), void *object) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_add_dirty_texture_region (struct wined3d_cs *cs, struct wined3d_texture *texture, unsigned int layer) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_blt_sub_resource (struct wined3d_cs *cs, struct wined3d_resource *dst_resource, unsigned int dst_sub_resource_idx, const struct wined3d_box *dst_box, struct wined3d_resource *src_resource, unsigned int src_sub_resource_idx, const struct wined3d_box *src_box, DWORD flags, const struct wined3d_blt_fx *fx, enum wined3d_texture_filter_type filter) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_clear (struct wined3d_cs *cs, DWORD rect_count, const RECT *rects, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_clear_rendertarget_view (struct wined3d_cs *cs, struct wined3d_rendertarget_view *view, const RECT *rect, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_clear_unordered_access_view_uint (struct wined3d_cs *cs, struct wined3d_unordered_access_view *view, const struct wined3d_uvec4 *clear_value) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_copy_uav_counter (struct wined3d_cs *cs, struct wined3d_buffer *dst_buffer, unsigned int offset, struct wined3d_unordered_access_view *uav) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_dispatch (struct wined3d_cs *cs, unsigned int group_count_x, unsigned int group_count_y, unsigned int group_count_z) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_dispatch_indirect (struct wined3d_cs *cs, struct wined3d_buffer *buffer, unsigned int offset) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_draw (struct wined3d_cs *cs, GLenum primitive_type, unsigned int patch_vertex_count, int base_vertex_idx, unsigned int start_idx, unsigned int index_count, unsigned int start_instance, unsigned int instance_count, BOOL indexed) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_draw_indirect (struct wined3d_cs *cs, GLenum primitive_type, unsigned int patch_vertex_count, struct wined3d_buffer *buffer, unsigned int offset, BOOL indexed) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_flush (struct wined3d_cs *cs) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_generate_mipmaps (struct wined3d_cs *cs, struct wined3d_shader_resource_view *view) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_preload_resource (struct wined3d_cs *cs, struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_present (struct wined3d_cs *cs, struct wined3d_swapchain *swapchain, const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override, DWORD swap_interval, DWORD flags) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_query_issue (struct wined3d_cs *cs, struct wined3d_query *query, DWORD flags) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_reset_state (struct wined3d_cs *cs) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_blend_state (struct wined3d_cs *cs, struct wined3d_blend_state *state) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_clip_plane (struct wined3d_cs *cs, UINT plane_idx, const struct wined3d_vec4 *plane) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_color_key (struct wined3d_cs *cs, struct wined3d_texture *texture, WORD flags, const struct wined3d_color_key *color_key) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_constant_buffer (struct wined3d_cs *cs, enum wined3d_shader_type type, UINT cb_idx, struct wined3d_buffer *buffer) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_depth_stencil_view (struct wined3d_cs *cs, struct wined3d_rendertarget_view *view) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_index_buffer (struct wined3d_cs *cs, struct wined3d_buffer *buffer, enum wined3d_format_id format_id, unsigned int offset) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_light (struct wined3d_cs *cs, const struct wined3d_light_info *light) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_light_enable (struct wined3d_cs *cs, unsigned int idx, BOOL enable) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_material (struct wined3d_cs *cs, const struct wined3d_material *material) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_predication (struct wined3d_cs *cs, struct wined3d_query *predicate, BOOL value) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_rasterizer_state (struct wined3d_cs *cs, struct wined3d_rasterizer_state *rasterizer_state) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_render_state (struct wined3d_cs *cs, enum wined3d_render_state state, DWORD value) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_rendertarget_view (struct wined3d_cs *cs, unsigned int view_idx, struct wined3d_rendertarget_view *view) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_shader_resource_view (struct wined3d_cs *cs, enum wined3d_shader_type type, UINT view_idx, struct wined3d_shader_resource_view *view) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_sampler (struct wined3d_cs *cs, enum wined3d_shader_type type, UINT sampler_idx, struct wined3d_sampler *sampler) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_sampler_state (struct wined3d_cs *cs, UINT sampler_idx, enum wined3d_sampler_state state, DWORD value) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_scissor_rect (struct wined3d_cs *cs, const RECT *rect) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_shader (struct wined3d_cs *cs, enum wined3d_shader_type type, struct wined3d_shader *shader) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_stream_output (struct wined3d_cs *cs, UINT stream_idx, struct wined3d_buffer *buffer, UINT offset) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_stream_source (struct wined3d_cs *cs, UINT stream_idx, struct wined3d_buffer *buffer, UINT offset, UINT stride) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_stream_source_freq (struct wined3d_cs *cs, UINT stream_idx, UINT frequency, UINT flags) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_texture (struct wined3d_cs *cs, UINT stage, struct wined3d_texture *texture) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_texture_state (struct wined3d_cs *cs, UINT stage, enum wined3d_texture_stage_state state, DWORD value) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_transform (struct wined3d_cs *cs, enum wined3d_transform_state state, const struct wined3d_matrix *matrix) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_unordered_access_view (struct wined3d_cs *cs, enum wined3d_pipeline pipeline, unsigned int view_idx, struct wined3d_unordered_access_view *view, unsigned int initial_count) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_vertex_declaration (struct wined3d_cs *cs, struct wined3d_vertex_declaration *declaration) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_set_viewport (struct wined3d_cs *cs, const struct wined3d_viewport *viewport) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_unload_resource (struct wined3d_cs *cs, struct wined3d_resource *resource) DECLSPEC_HIDDEN
 
void wined3d_cs_emit_update_sub_resource (struct wined3d_cs *cs, struct wined3d_resource *resource, unsigned int sub_resource_idx, const struct wined3d_box *box, const void *data, unsigned int row_pitch, unsigned int slice_pitch) DECLSPEC_HIDDEN
 
void wined3d_cs_init_object (struct wined3d_cs *cs, void(*callback)(void *object), void *object) DECLSPEC_HIDDEN
 
HRESULT wined3d_cs_map (struct wined3d_cs *cs, struct wined3d_resource *resource, unsigned int sub_resource_idx, struct wined3d_map_desc *map_desc, const struct wined3d_box *box, unsigned int flags) DECLSPEC_HIDDEN
 
HRESULT wined3d_cs_unmap (struct wined3d_cs *cs, struct wined3d_resource *resource, unsigned int sub_resource_idx) DECLSPEC_HIDDEN
 
static void wined3d_cs_push_constants (struct wined3d_cs *cs, enum wined3d_push_constants p, unsigned int start_idx, unsigned int count, const void *constants)
 
static void wined3d_resource_wait_idle (struct wined3d_resource *resource)
 
static struct wined3d_bufferbuffer_from_resource (struct wined3d_resource *resource)
 
DWORD wined3d_buffer_get_memory (struct wined3d_buffer *buffer, struct wined3d_bo_address *data, DWORD locations) DECLSPEC_HIDDEN
 
void wined3d_buffer_invalidate_location (struct wined3d_buffer *buffer, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_buffer_load (struct wined3d_buffer *buffer, struct wined3d_context *context, const struct wined3d_state *state) DECLSPEC_HIDDEN
 
BOOL wined3d_buffer_load_location (struct wined3d_buffer *buffer, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN
 
BYTEwined3d_buffer_load_sysmem (struct wined3d_buffer *buffer, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void wined3d_buffer_copy (struct wined3d_buffer *dst_buffer, unsigned int dst_offset, struct wined3d_buffer *src_buffer, unsigned int src_offset, unsigned int size) DECLSPEC_HIDDEN
 
void wined3d_buffer_upload_data (struct wined3d_buffer *buffer, struct wined3d_context *context, const struct wined3d_box *box, const void *data) DECLSPEC_HIDDEN
 
static struct wined3d_surfacewined3d_rendertarget_view_get_surface (const struct wined3d_rendertarget_view *view)
 
void wined3d_rendertarget_view_get_drawable_size (const struct wined3d_rendertarget_view *view, const struct wined3d_context *context, unsigned int *width, unsigned int *height) DECLSPEC_HIDDEN
 
void wined3d_rendertarget_view_invalidate_location (struct wined3d_rendertarget_view *view, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_rendertarget_view_load_location (struct wined3d_rendertarget_view *view, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_rendertarget_view_prepare_location (struct wined3d_rendertarget_view *view, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_rendertarget_view_validate_location (struct wined3d_rendertarget_view *view, DWORD location) DECLSPEC_HIDDEN
 
void shader_resource_view_generate_mipmaps (struct wined3d_shader_resource_view *view) DECLSPEC_HIDDEN
 
void wined3d_shader_resource_view_bind (struct wined3d_shader_resource_view *view, unsigned int unit, struct wined3d_sampler *sampler, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void wined3d_unordered_access_view_clear_uint (struct wined3d_unordered_access_view *view, const struct wined3d_uvec4 *clear_value, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void wined3d_unordered_access_view_copy_counter (struct wined3d_unordered_access_view *view, struct wined3d_buffer *buffer, unsigned int offset, struct wined3d_context *context) DECLSPEC_HIDDEN
 
void wined3d_unordered_access_view_invalidate_location (struct wined3d_unordered_access_view *view, DWORD location) DECLSPEC_HIDDEN
 
void wined3d_unordered_access_view_set_counter (struct wined3d_unordered_access_view *view, unsigned int value) DECLSPEC_HIDDEN
 
void wined3d_swapchain_activate (struct wined3d_swapchain *swapchain, BOOL activate) DECLSPEC_HIDDEN
 
struct wined3d_contextswapchain_get_context (struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN
 
void swapchain_destroy_contexts (struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN
 
HDC swapchain_get_backup_dc (struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN
 
void swapchain_update_draw_bindings (struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN
 
void swapchain_update_swap_interval (struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN
 
const chardebug_box (const struct wined3d_box *box) DECLSPEC_HIDDEN
 
const chardebug_color (const struct wined3d_color *color) DECLSPEC_HIDDEN
 
const chardebug_d3dshaderinstructionhandler (enum WINED3D_SHADER_INSTRUCTION_HANDLER handler_idx) DECLSPEC_HIDDEN
 
const chardebug_d3dformat (enum wined3d_format_id format_id) DECLSPEC_HIDDEN
 
const chardebug_d3ddevicetype (enum wined3d_device_type device_type) DECLSPEC_HIDDEN
 
const chardebug_d3dresourcetype (enum wined3d_resource_type resource_type) DECLSPEC_HIDDEN
 
const chardebug_d3dusage (DWORD usage) DECLSPEC_HIDDEN
 
const chardebug_d3dusagequery (DWORD usagequery) DECLSPEC_HIDDEN
 
const chardebug_d3ddeclmethod (enum wined3d_decl_method method) DECLSPEC_HIDDEN
 
const chardebug_d3ddeclusage (enum wined3d_decl_usage usage) DECLSPEC_HIDDEN
 
const chardebug_d3dinput_classification (enum wined3d_input_classification classification) DECLSPEC_HIDDEN
 
const chardebug_d3dprimitivetype (enum wined3d_primitive_type primitive_type) DECLSPEC_HIDDEN
 
const chardebug_d3drenderstate (enum wined3d_render_state state) DECLSPEC_HIDDEN
 
const chardebug_d3dsamplerstate (enum wined3d_sampler_state state) DECLSPEC_HIDDEN
 
const chardebug_d3dstate (DWORD state) DECLSPEC_HIDDEN
 
const chardebug_d3dtexturefiltertype (enum wined3d_texture_filter_type filter_type) DECLSPEC_HIDDEN
 
const chardebug_d3dtexturestate (enum wined3d_texture_stage_state state) DECLSPEC_HIDDEN
 
const chardebug_d3dtop (enum wined3d_texture_op d3dtop) DECLSPEC_HIDDEN
 
const chardebug_d3dtstype (enum wined3d_transform_state tstype) DECLSPEC_HIDDEN
 
const chardebug_fboattachment (GLenum attachment) DECLSPEC_HIDDEN
 
const chardebug_fbostatus (GLenum status) DECLSPEC_HIDDEN
 
const chardebug_glerror (GLenum error) DECLSPEC_HIDDEN
 
const chardebug_ivec4 (const struct wined3d_ivec4 *v) DECLSPEC_HIDDEN
 
const chardebug_uvec4 (const struct wined3d_uvec4 *v) DECLSPEC_HIDDEN
 
const chardebug_shader_type (enum wined3d_shader_type shader_type) DECLSPEC_HIDDEN
 
const chardebug_vec4 (const struct wined3d_vec4 *v) DECLSPEC_HIDDEN
 
void dump_color_fixup_desc (struct color_fixup_desc fixup) DECLSPEC_HIDDEN
 
BOOL is_invalid_op (const struct wined3d_state *state, int stage, enum wined3d_texture_op op, DWORD arg1, DWORD arg2, DWORD arg3) DECLSPEC_HIDDEN
 
void set_tex_op_nvrc (const struct wined3d_gl_info *gl_info, const struct wined3d_state *state, BOOL is_alpha, int stage, enum wined3d_texture_op op, DWORD arg1, DWORD arg2, DWORD arg3, INT texture_idx, DWORD dst) DECLSPEC_HIDDEN
 
void texture_activate_dimensions (const struct wined3d_texture *texture, const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN
 
void sampler_texdim (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void tex_alphaop (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void apply_pixelshader (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_alpha_test (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_fogcolor (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_fogdensity (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_fogstartend (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_fog_fragpart (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_nop (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_srgbwrite (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_clipping (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void clipplane (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_pointsprite_w (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_pointsprite (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
void state_shademode (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id) DECLSPEC_HIDDEN
 
GLenum gl_primitive_type_from_d3d (enum wined3d_primitive_type primitive_type) DECLSPEC_HIDDEN
 
void multiply_matrix (struct wined3d_matrix *dest, const struct wined3d_matrix *src1, const struct wined3d_matrix *src2) DECLSPEC_HIDDEN
 
BOOL invert_matrix_3d (struct wined3d_matrix *out, const struct wined3d_matrix *in) DECLSPEC_HIDDEN
 
BOOL invert_matrix (struct wined3d_matrix *out, const struct wined3d_matrix *m) DECLSPEC_HIDDEN
 
void transpose_matrix (struct wined3d_matrix *out, const struct wined3d_matrix *m) DECLSPEC_HIDDEN
 
void wined3d_release_dc (HWND window, HDC dc) DECLSPEC_HIDDEN
 
struct wined3d_string_bufferstring_buffer_get (struct wined3d_string_buffer_list *list) DECLSPEC_HIDDEN
 
void string_buffer_sprintf (struct wined3d_string_buffer *buffer, const char *format,...) PRINTF_ATTR(2
 
void string_buffer_release (struct wined3d_string_buffer_list *list, struct wined3d_string_buffer *buffer) DECLSPEC_HIDDEN
 
void string_buffer_list_init (struct wined3d_string_buffer_list *list) DECLSPEC_HIDDEN
 
void string_buffer_list_cleanup (struct wined3d_string_buffer_list *list) DECLSPEC_HIDDEN
 
int shader_addline (struct wined3d_string_buffer *buffer, const char *fmt,...) PRINTF_ATTR(2
 
BOOL string_buffer_resize (struct wined3d_string_buffer *buffer, int rc) DECLSPEC_HIDDEN
 
int shader_vaddline (struct wined3d_string_buffer *buffer, const char *fmt, va_list args) DECLSPEC_HIDDEN
 
void pixelshader_update_resource_types (struct wined3d_shader *shader, WORD tex_types) DECLSPEC_HIDDEN
 
void find_ps_compile_args (const struct wined3d_state *state, const struct wined3d_shader *shader, BOOL position_transformed, struct ps_compile_args *args, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
BOOL vshader_get_input (const struct wined3d_shader *shader, BYTE usage_req, BYTE usage_idx_req, unsigned int *regnum) DECLSPEC_HIDDEN
 
void find_vs_compile_args (const struct wined3d_state *state, const struct wined3d_shader *shader, WORD swizzle_map, struct vs_compile_args *args, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
void find_ds_compile_args (const struct wined3d_state *state, const struct wined3d_shader *shader, struct ds_compile_args *args, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
void find_gs_compile_args (const struct wined3d_state *state, const struct wined3d_shader *shader, struct gs_compile_args *args, const struct wined3d_context *context) DECLSPEC_HIDDEN
 
void string_buffer_clear (struct wined3d_string_buffer *buffer) DECLSPEC_HIDDEN
 
BOOL string_buffer_init (struct wined3d_string_buffer *buffer) DECLSPEC_HIDDEN
 
void string_buffer_free (struct wined3d_string_buffer *buffer) DECLSPEC_HIDDEN
 
unsigned int shader_find_free_input_register (const struct wined3d_shader_reg_maps *reg_maps, unsigned int max) DECLSPEC_HIDDEN
 
HRESULT shader_generate_code (const struct wined3d_shader *shader, struct wined3d_string_buffer *buffer, const struct wined3d_shader_reg_maps *reg_maps, void *backend_ctx, const DWORD *start, const DWORD *end) DECLSPEC_HIDDEN
 
BOOL shader_match_semantic (const char *semantic_name, enum wined3d_decl_usage usage) DECLSPEC_HIDDEN
 
static BOOL shader_is_scalar (const struct wined3d_shader_register *reg)
 
static void shader_get_position_fixup (const struct wined3d_context *context, const struct wined3d_state *state, float *position_fixup)
 
static BOOL shader_constant_is_local (const struct wined3d_shader *shader, DWORD reg)
 
void get_identity_matrix (struct wined3d_matrix *mat) DECLSPEC_HIDDEN
 
void get_modelview_matrix (const struct wined3d_context *context, const struct wined3d_state *state, unsigned int index, struct wined3d_matrix *mat) DECLSPEC_HIDDEN
 
void get_projection_matrix (const struct wined3d_context *context, const struct wined3d_state *state, struct wined3d_matrix *mat) DECLSPEC_HIDDEN
 
void get_texture_matrix (const struct wined3d_context *context, const struct wined3d_state *state, unsigned int tex, struct wined3d_matrix *mat) DECLSPEC_HIDDEN
 
void get_pointsize_minmax (const struct wined3d_context *context, const struct wined3d_state *state, float *out_min, float *out_max) DECLSPEC_HIDDEN
 
void get_pointsize (const struct wined3d_context *context, const struct wined3d_state *state, float *out_pointsize, float *out_att) DECLSPEC_HIDDEN
 
void get_fog_start_end (const struct wined3d_context *context, const struct wined3d_state *state, float *start, float *end) DECLSPEC_HIDDEN
 
void print_glsl_info_log (const struct wined3d_gl_info *gl_info, GLuint id, BOOL program) DECLSPEC_HIDDEN
 
void shader_glsl_validate_link (const struct wined3d_gl_info *gl_info, GLuint program) DECLSPEC_HIDDEN
 
enum wined3d_format_id pixelformat_for_depth (DWORD depth) DECLSPEC_HIDDEN
 
const struct wined3d_formatwined3d_get_format (const struct wined3d_gl_info *gl_info, enum wined3d_format_id format_id, unsigned int resource_usage) DECLSPEC_HIDDEN
 
void wined3d_format_calculate_pitch (const struct wined3d_format *format, unsigned int alignment, unsigned int width, unsigned int height, unsigned int *row_pitch, unsigned int *slice_pitch) DECLSPEC_HIDDEN
 
UINT wined3d_format_calculate_size (const struct wined3d_format *format, UINT alignment, UINT width, UINT height, UINT depth) DECLSPEC_HIDDEN
 
DWORD wined3d_format_convert_from_float (const struct wined3d_format *format, const struct wined3d_color *color) DECLSPEC_HIDDEN
 
void wined3d_format_get_float_color_key (const struct wined3d_format *format, const struct wined3d_color_key *key, struct wined3d_color *float_colors) DECLSPEC_HIDDEN
 
BOOL wined3d_format_is_depth_view (enum wined3d_format_id resource_format_id, enum wined3d_format_id view_format_id) DECLSPEC_HIDDEN
 
const struct wined3d_color_key_conversionwined3d_format_get_color_key_conversion (const struct wined3d_texture *texture, BOOL need_alpha_ck) DECLSPEC_HIDDEN
 
BOOL wined3d_formats_are_srgb_variants (enum wined3d_format_id format1, enum wined3d_format_id format2) DECLSPEC_HIDDEN
 
BOOL wined3d_array_reserve (void **elements, SIZE_T *capacity, SIZE_T count, SIZE_T size) DECLSPEC_HIDDEN
 
static BOOL wined3d_format_is_typeless (const struct wined3d_format *format)
 
static BOOL use_indexed_vertex_blending (const struct wined3d_state *state, const struct wined3d_stream_info *si)
 
static BOOL use_software_vertex_processing (const struct wined3d_device *device)
 
static BOOL use_vs (const struct wined3d_state *state)
 
static BOOL use_ps (const struct wined3d_state *state)
 
static void context_apply_state (struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
 
static BOOL needs_separate_srgb_gl_texture (const struct wined3d_context *context, const struct wined3d_texture *texture)
 
static BOOL needs_srgb_write (const struct wined3d_context *context, const struct wined3d_state *state, const struct wined3d_fb_state *fb)
 
static GLuint wined3d_texture_get_texture_name (const struct wined3d_texture *texture, const struct wined3d_context *context, BOOL srgb)
 
static BOOL can_use_texture_swizzle (const struct wined3d_gl_info *gl_info, const struct wined3d_format *format)
 
static BOOL needs_interpolation_qualifiers_for_shader_outputs (const struct wined3d_gl_info *gl_info)
 
static BOOL is_rasterization_disabled (const struct wined3d_shader *geometry_shader)
 
static int wined3d_bit_scan (unsigned int *x)
 
static DWORD wined3d_extract_bits (const DWORD *bitstream, unsigned int offset, unsigned int count)
 
static void wined3d_insert_bits (DWORD *bitstream, unsigned int offset, unsigned int count, DWORD bits)
 
static struct wined3d_surfacecontext_get_rt_surface (const struct wined3d_context *context)
 
static void wined3d_from_cs (const struct wined3d_cs *cs)
 
static void wined3d_not_from_cs (struct wined3d_cs *cs)
 
BOOL wined3d_dxtn_init (void) DECLSPEC_HIDDEN
 
void wined3d_dxtn_free (void) DECLSPEC_HIDDEN
 

Variables

wined3d_ffp_attrib_func specular_func_3ubv DECLSPEC_HIDDEN
 
static const struct color_fixup_desc COLOR_FIXUP_IDENTITY
 

Macro Definition Documentation

◆ ARG_UNUSED

#define ARG_UNUSED   0xff

Definition at line 2659 of file wined3d_private.h.

◆ ARRAY_SIZE

#define ARRAY_SIZE (   array)    (sizeof(array) / sizeof((array)[0]))

Definition at line 62 of file wined3d_private.h.

◆ checkGLcall

#define checkGLcall (   A)
Value:
do { \
if (__WINE_IS_DEBUG_ON(_ERR, &__wine_dbch_d3d) \
&& !gl_info->supported[ARB_DEBUG_OUTPUT]) \
wined3d_check_gl_call(gl_info, __FILE__, __LINE__, A); \
} while(0)
#define __WINE_IS_DEBUG_ON(dbcl, dbch)
Definition: debug.h:86
Definition: ttei1.cpp:12

Definition at line 1463 of file wined3d_private.h.

◆ COBJMACROS

#define COBJMACROS

Definition at line 42 of file wined3d_private.h.

◆ D3DCOLOR_B_A

#define D3DCOLOR_B_A (   dw)    (((dw) >> 24) & 0xff)

Definition at line 1445 of file wined3d_private.h.

◆ D3DCOLOR_B_B

#define D3DCOLOR_B_B (   dw)    (((dw) >> 0) & 0xff)

Definition at line 1444 of file wined3d_private.h.

◆ D3DCOLOR_B_G

#define D3DCOLOR_B_G (   dw)    (((dw) >> 8) & 0xff)

Definition at line 1443 of file wined3d_private.h.

◆ D3DCOLOR_B_R

#define D3DCOLOR_B_R (   dw)    (((dw) >> 16) & 0xff)

Definition at line 1442 of file wined3d_private.h.

◆ eps

#define eps   1e-8f

Definition at line 1567 of file wined3d_private.h.

◆ GET_TEXCOORD_SIZE_FROM_FVF

#define GET_TEXCOORD_SIZE_FROM_FVF (   d3dvtVertexType,
  tex_num 
)    (((((d3dvtVertexType) >> (16 + (2 * (tex_num)))) + 1) & 0x03) + 1)

Definition at line 1569 of file wined3d_private.h.

◆ GL_EXT_EMUL_ARB_MULTITEXTURE

#define GL_EXT_EMUL_ARB_MULTITEXTURE   0x00000001

Definition at line 2037 of file wined3d_private.h.

◆ GL_EXT_EMUL_EXT_FOG_COORD

#define GL_EXT_EMUL_EXT_FOG_COORD   0x00000002

Definition at line 2038 of file wined3d_private.h.

◆ GL_EXTCALL

#define GL_EXTCALL (   f)    (gl_info->gl_ops.ext.p_##f)

Definition at line 1440 of file wined3d_private.h.

◆ HIGHEST_TRANSFORMSTATE

#define HIGHEST_TRANSFORMSTATE   WINED3D_TS_WORLD_MATRIX(255) /* Highest value in wined3d_transform_state. */

Definition at line 1455 of file wined3d_private.h.

◆ IS_DUAL_SOURCE_BLEND

#define IS_DUAL_SOURCE_BLEND (   x)    ((x) >= WINED3D_BLEND_SRC1COLOR && (x) <= WINED3D_BLEND_INVSRC1ALPHA)

◆ LIGHTMAP_HASHFUNC

#define LIGHTMAP_HASHFUNC (   x)    ((x) % LIGHTMAP_SIZE)

Definition at line 2865 of file wined3d_private.h.

◆ LIGHTMAP_SIZE

#define LIGHTMAP_SIZE   43

Definition at line 2864 of file wined3d_private.h.

◆ MAKEDWORD_VERSION

#define MAKEDWORD_VERSION (   maj,
  min 
)    (((maj & 0xffffu) << 16) | (min & 0xffffu))

Definition at line 65 of file wined3d_private.h.

◆ MAX_ACTIVE_LIGHTS

#define MAX_ACTIVE_LIGHTS   8

Definition at line 270 of file wined3d_private.h.

◆ MAX_ATTRIBS

#define MAX_ATTRIBS   16

Definition at line 662 of file wined3d_private.h.

◆ MAX_CLIP_DISTANCES

#define MAX_CLIP_DISTANCES   8

Definition at line 271 of file wined3d_private.h.

◆ MAX_COMBINED_SAMPLERS

#define MAX_COMBINED_SAMPLERS   (MAX_FRAGMENT_SAMPLERS + MAX_VERTEX_SAMPLERS)

Definition at line 269 of file wined3d_private.h.

◆ MAX_CONSTANT_BUFFERS

#define MAX_CONSTANT_BUFFERS   15

Definition at line 272 of file wined3d_private.h.

◆ MAX_FRAGMENT_SAMPLERS

#define MAX_FRAGMENT_SAMPLERS   16

Definition at line 267 of file wined3d_private.h.

◆ MAX_GL_FRAGMENT_SAMPLERS

#define MAX_GL_FRAGMENT_SAMPLERS   32

Definition at line 1860 of file wined3d_private.h.

◆ MAX_IMMEDIATE_CONSTANT_BUFFER_SIZE

#define MAX_IMMEDIATE_CONSTANT_BUFFER_SIZE   4096

Definition at line 677 of file wined3d_private.h.

◆ MAX_LABELS

#define MAX_LABELS   16

Definition at line 675 of file wined3d_private.h.

◆ MAX_MULTISAMPLE_TYPES

#define MAX_MULTISAMPLE_TYPES   8

Definition at line 280 of file wined3d_private.h.

◆ MAX_REG_ADDR

#define MAX_REG_ADDR   1

Definition at line 663 of file wined3d_private.h.

◆ MAX_REG_INPUT

#define MAX_REG_INPUT   32

Definition at line 665 of file wined3d_private.h.

◆ MAX_REG_OUTPUT

#define MAX_REG_OUTPUT   32

Definition at line 666 of file wined3d_private.h.

◆ MAX_REG_TEXCRD

#define MAX_REG_TEXCRD   8

Definition at line 664 of file wined3d_private.h.

◆ MAX_RENDER_TARGET_VIEWS

#define MAX_RENDER_TARGET_VIEWS   8

Definition at line 275 of file wined3d_private.h.

◆ MAX_RENDER_TARGETS

#define MAX_RENDER_TARGETS   8

Definition at line 281 of file wined3d_private.h.

◆ MAX_SAMPLER_OBJECTS

#define MAX_SAMPLER_OBJECTS   16

Definition at line 273 of file wined3d_private.h.

◆ MAX_SHADER_RESOURCE_VIEWS

#define MAX_SHADER_RESOURCE_VIEWS   128

Definition at line 274 of file wined3d_private.h.

◆ MAX_STREAMS

#define MAX_STREAMS   16

Definition at line 265 of file wined3d_private.h.

◆ MAX_TEXTURES

#define MAX_TEXTURES   8

Definition at line 266 of file wined3d_private.h.

◆ MAX_TGSM_REGISTERS

#define MAX_TGSM_REGISTERS   8192

Definition at line 277 of file wined3d_private.h.

◆ MAX_UNORDERED_ACCESS_VIEWS

#define MAX_UNORDERED_ACCESS_VIEWS   8

Definition at line 276 of file wined3d_private.h.

◆ MAX_VERTEX_BLENDS

#define MAX_VERTEX_BLENDS   4

Definition at line 278 of file wined3d_private.h.

◆ MAX_VERTEX_INDEX_BLENDS

#define MAX_VERTEX_INDEX_BLENDS   9

Definition at line 279 of file wined3d_private.h.

◆ MAX_VERTEX_SAMPLERS

#define MAX_VERTEX_SAMPLERS   4

Definition at line 268 of file wined3d_private.h.

◆ NONAMELESSSTRUCT

#define NONAMELESSSTRUCT

Definition at line 41 of file wined3d_private.h.

◆ NONAMELESSUNION

#define NONAMELESSUNION

Definition at line 40 of file wined3d_private.h.

◆ ORM_BACKBUFFER

#define ORM_BACKBUFFER   0

Definition at line 383 of file wined3d_private.h.

◆ ORM_FBO

#define ORM_FBO   1

Definition at line 384 of file wined3d_private.h.

◆ PCI_DEVICE_NONE

#define PCI_DEVICE_NONE   0xffff /* e.g. 0x14f for a Geforce6200 */

Definition at line 387 of file wined3d_private.h.

◆ PCI_VENDOR_NONE

#define PCI_VENDOR_NONE   0xffff /* e.g. 0x8086 for Intel and 0x10de for Nvidia */

Definition at line 386 of file wined3d_private.h.

◆ PRINTF_ATTR

#define PRINTF_ATTR (   fmt,
  args 
)

Definition at line 3987 of file wined3d_private.h.

◆ RESOURCE_ALIGNMENT

#define RESOURCE_ALIGNMENT   16

Definition at line 3116 of file wined3d_private.h.

◆ STATE_ACTIVELIGHT

#define STATE_ACTIVELIGHT (   a)    (STATE_LIGHT_TYPE + 1 + (a))

Definition at line 1624 of file wined3d_private.h.

◆ STATE_BASEVERTEXINDEX

#define STATE_BASEVERTEXINDEX   (STATE_POINTSPRITECOORDORIGIN + 1)

Definition at line 1642 of file wined3d_private.h.

◆ STATE_BLEND

#define STATE_BLEND   (STATE_STREAM_OUTPUT + 1)

Definition at line 1657 of file wined3d_private.h.

◆ STATE_CLIPPLANE

#define STATE_CLIPPLANE (   a)    (STATE_SCISSORRECT + 1 + (a))

Definition at line 1630 of file wined3d_private.h.

◆ STATE_COLOR_KEY

#define STATE_COLOR_KEY   (STATE_POINT_ENABLE + 1)

Definition at line 1651 of file wined3d_private.h.

◆ STATE_COMPUTE_CONSTANT_BUFFER

#define STATE_COMPUTE_CONSTANT_BUFFER   (STATE_COMPUTE_SHADER + 1)

Definition at line 1665 of file wined3d_private.h.

◆ STATE_COMPUTE_COUNT

#define STATE_COMPUTE_COUNT   (STATE_COMPUTE_HIGHEST - STATE_COMPUTE_OFFSET + 1)

Definition at line 1678 of file wined3d_private.h.

◆ STATE_COMPUTE_HIGHEST

#define STATE_COMPUTE_HIGHEST   (STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING)

Definition at line 1674 of file wined3d_private.h.

◆ STATE_COMPUTE_OFFSET

#define STATE_COMPUTE_OFFSET   (STATE_BLEND + 1)

Definition at line 1660 of file wined3d_private.h.

◆ STATE_COMPUTE_SHADER

#define STATE_COMPUTE_SHADER   (STATE_COMPUTE_OFFSET)

Definition at line 1662 of file wined3d_private.h.

◆ STATE_COMPUTE_SHADER_RESOURCE_BINDING

#define STATE_COMPUTE_SHADER_RESOURCE_BINDING   (STATE_COMPUTE_CONSTANT_BUFFER + 1)

Definition at line 1668 of file wined3d_private.h.

◆ STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING

#define STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING   (STATE_COMPUTE_SHADER_RESOURCE_BINDING + 1)

Definition at line 1671 of file wined3d_private.h.

◆ STATE_CONSTANT_BUFFER

Definition at line 1681 of file wined3d_private.h.

◆ STATE_FRAMEBUFFER

#define STATE_FRAMEBUFFER   (STATE_BASEVERTEXINDEX + 1)

Definition at line 1645 of file wined3d_private.h.

◆ STATE_FRONTFACE

#define STATE_FRONTFACE   (STATE_MATERIAL + 1)

Definition at line 1636 of file wined3d_private.h.

◆ STATE_GRAPHICS_CONSTANT_BUFFER

#define STATE_GRAPHICS_CONSTANT_BUFFER (   a)    (STATE_GRAPHICS_SHADER(WINED3D_SHADER_TYPE_GRAPHICS_COUNT) + (a))

Definition at line 1597 of file wined3d_private.h.

◆ STATE_GRAPHICS_SHADER

#define STATE_GRAPHICS_SHADER (   a)    (STATE_SAMPLER(MAX_COMBINED_SAMPLERS) + (a))

Definition at line 1593 of file wined3d_private.h.

◆ STATE_GRAPHICS_SHADER_RESOURCE_BINDING

#define STATE_GRAPHICS_SHADER_RESOURCE_BINDING   (STATE_GRAPHICS_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GRAPHICS_COUNT))

Definition at line 1602 of file wined3d_private.h.

◆ STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING

#define STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING   (STATE_GRAPHICS_SHADER_RESOURCE_BINDING + 1)

Definition at line 1605 of file wined3d_private.h.

◆ STATE_HIGHEST

Definition at line 1675 of file wined3d_private.h.

◆ STATE_INDEXBUFFER

#define STATE_INDEXBUFFER   (STATE_STREAMSRC + 1)

Definition at line 1613 of file wined3d_private.h.

◆ STATE_IS_ACTIVELIGHT

#define STATE_IS_ACTIVELIGHT (   a)    ((a) >= STATE_ACTIVELIGHT(0) && (a) < STATE_ACTIVELIGHT(MAX_ACTIVE_LIGHTS))

Definition at line 1625 of file wined3d_private.h.

◆ STATE_IS_BASEVERTEXINDEX

#define STATE_IS_BASEVERTEXINDEX (   a)    ((a) == STATE_BASEVERTEXINDEX)

Definition at line 1643 of file wined3d_private.h.

◆ STATE_IS_BLEND

#define STATE_IS_BLEND (   a)    ((a) == STATE_BLEND)

Definition at line 1658 of file wined3d_private.h.

◆ STATE_IS_CLIPPLANE

#define STATE_IS_CLIPPLANE (   a)    ((a) >= STATE_CLIPPLANE(0) && (a) <= STATE_CLIPPLANE(MAX_CLIP_DISTANCES - 1))

Definition at line 1631 of file wined3d_private.h.

◆ STATE_IS_COLOR_KEY

#define STATE_IS_COLOR_KEY (   a)    ((a) == STATE_COLOR_KEY)

Definition at line 1652 of file wined3d_private.h.

◆ STATE_IS_COMPUTE

#define STATE_IS_COMPUTE (   a)    ((a) >= STATE_COMPUTE_OFFSET && (a) <= STATE_COMPUTE_HIGHEST)

Definition at line 1677 of file wined3d_private.h.

◆ STATE_IS_COMPUTE_CONSTANT_BUFFER

#define STATE_IS_COMPUTE_CONSTANT_BUFFER (   a)    ((a) == STATE_COMPUTE_CONSTANT_BUFFER)

Definition at line 1666 of file wined3d_private.h.

◆ STATE_IS_COMPUTE_SHADER

#define STATE_IS_COMPUTE_SHADER (   a)    ((a) == STATE_COMPUTE_SHADER)

Definition at line 1663 of file wined3d_private.h.

◆ STATE_IS_COMPUTE_SHADER_RESOURCE_BINDING

#define STATE_IS_COMPUTE_SHADER_RESOURCE_BINDING (   a)    ((a) == STATE_COMPUTE_SHADER_RESOURCE_BINDING)

Definition at line 1669 of file wined3d_private.h.

◆ STATE_IS_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING

#define STATE_IS_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING (   a)    ((a) == STATE_COMPUTE_UNORDERED_ACCESS_VIEW_BINDING)

Definition at line 1672 of file wined3d_private.h.

◆ STATE_IS_FRAMEBUFFER

#define STATE_IS_FRAMEBUFFER (   a)    ((a) == STATE_FRAMEBUFFER)

Definition at line 1646 of file wined3d_private.h.

◆ STATE_IS_FRONTFACE

#define STATE_IS_FRONTFACE (   a)    ((a) == STATE_FRONTFACE)

Definition at line 1637 of file wined3d_private.h.

◆ STATE_IS_GRAPHICS_CONSTANT_BUFFER

#define STATE_IS_GRAPHICS_CONSTANT_BUFFER (   a)

◆ STATE_IS_GRAPHICS_SHADER

#define STATE_IS_GRAPHICS_SHADER (   a)    ((a) >= STATE_GRAPHICS_SHADER(0) && (a) < STATE_GRAPHICS_SHADER(WINED3D_SHADER_TYPE_GRAPHICS_COUNT))

Definition at line 1594 of file wined3d_private.h.

◆ STATE_IS_GRAPHICS_SHADER_RESOURCE_BINDING

#define STATE_IS_GRAPHICS_SHADER_RESOURCE_BINDING (   a)    ((a) == STATE_GRAPHICS_SHADER_RESOURCE_BINDING)

Definition at line 1603 of file wined3d_private.h.

◆ STATE_IS_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING

#define STATE_IS_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING (   a)    ((a) == STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING)

Definition at line 1606 of file wined3d_private.h.

◆ STATE_IS_INDEXBUFFER

#define STATE_IS_INDEXBUFFER (   a)    ((a) == STATE_INDEXBUFFER)

Definition at line 1614 of file wined3d_private.h.

◆ STATE_IS_LIGHT_TYPE

#define STATE_IS_LIGHT_TYPE (   a)    ((a) == STATE_LIGHT_TYPE)

Definition at line 1623 of file wined3d_private.h.

◆ STATE_IS_MATERIAL

#define STATE_IS_MATERIAL (   a)    ((a) == STATE_MATERIAL)

Definition at line 1634 of file wined3d_private.h.

◆ STATE_IS_POINT_ENABLE

#define STATE_IS_POINT_ENABLE (   a)    ((a) == STATE_POINT_ENABLE)

Definition at line 1649 of file wined3d_private.h.

◆ STATE_IS_POINTSPRITECOORDORIGIN

#define STATE_IS_POINTSPRITECOORDORIGIN (   a)    ((a) == STATE_POINTSPRITECOORDORIGIN)

Definition at line 1640 of file wined3d_private.h.

◆ STATE_IS_RENDER

#define STATE_IS_RENDER (   a)    ((a) >= STATE_RENDER(1) && (a) <= STATE_RENDER(WINEHIGHEST_RENDER_STATE))

Definition at line 1582 of file wined3d_private.h.

◆ STATE_IS_SAMPLER

#define STATE_IS_SAMPLER (   num)    ((num) >= STATE_SAMPLER(0) && (num) <= STATE_SAMPLER(MAX_COMBINED_SAMPLERS - 1))

Definition at line 1591 of file wined3d_private.h.

◆ STATE_IS_SCISSORRECT

#define STATE_IS_SCISSORRECT (   a)    ((a) == STATE_SCISSORRECT)

Definition at line 1628 of file wined3d_private.h.

◆ STATE_IS_STREAM_OUTPUT

#define STATE_IS_STREAM_OUTPUT (   a)    ((a) == STATE_STREAM_OUTPUT)

Definition at line 1655 of file wined3d_private.h.

◆ STATE_IS_STREAMSRC

#define STATE_IS_STREAMSRC (   a)    ((a) == STATE_STREAMSRC)

Definition at line 1612 of file wined3d_private.h.

◆ STATE_IS_TEXTURESTAGE

#define STATE_IS_TEXTURESTAGE (   a)    ((a) >= STATE_TEXTURESTAGE(0, 1) && (a) <= STATE_TEXTURESTAGE(MAX_TEXTURES - 1, WINED3D_HIGHEST_TEXTURE_STATE))

Definition at line 1586 of file wined3d_private.h.

◆ STATE_IS_TRANSFORM

#define STATE_IS_TRANSFORM (   a)    ((a) >= STATE_TRANSFORM(1) && (a) <= STATE_TRANSFORM(WINED3D_TS_WORLD_MATRIX(255)))

Definition at line 1609 of file wined3d_private.h.

◆ STATE_IS_VDECL

#define STATE_IS_VDECL (   a)    ((a) == STATE_VDECL)

Definition at line 1617 of file wined3d_private.h.

◆ STATE_IS_VIEWPORT

#define STATE_IS_VIEWPORT (   a)    ((a) == STATE_VIEWPORT)

Definition at line 1620 of file wined3d_private.h.

◆ STATE_LIGHT_TYPE

#define STATE_LIGHT_TYPE   (STATE_VIEWPORT + 1)

Definition at line 1622 of file wined3d_private.h.

◆ STATE_MATERIAL

#define STATE_MATERIAL   (STATE_CLIPPLANE(MAX_CLIP_DISTANCES))

Definition at line 1633 of file wined3d_private.h.

◆ STATE_POINT_ENABLE

#define STATE_POINT_ENABLE   (STATE_FRAMEBUFFER + 1)

Definition at line 1648 of file wined3d_private.h.

◆ STATE_POINTSPRITECOORDORIGIN

#define STATE_POINTSPRITECOORDORIGIN   (STATE_FRONTFACE + 1)

Definition at line 1639 of file wined3d_private.h.

◆ STATE_RENDER

#define STATE_RENDER (   a)    (a)

Definition at line 1581 of file wined3d_private.h.

◆ STATE_SAMPLER

#define STATE_SAMPLER (   num)    (STATE_TEXTURESTAGE(MAX_TEXTURES - 1, WINED3D_HIGHEST_TEXTURE_STATE) + 1 + (num))

Definition at line 1590 of file wined3d_private.h.

◆ STATE_SCISSORRECT

#define STATE_SCISSORRECT   (STATE_ACTIVELIGHT(MAX_ACTIVE_LIGHTS - 1) + 1)

Definition at line 1627 of file wined3d_private.h.

◆ STATE_SHADER

Definition at line 1680 of file wined3d_private.h.

◆ STATE_STREAM_OUTPUT

#define STATE_STREAM_OUTPUT   (STATE_COLOR_KEY + 1)

Definition at line 1654 of file wined3d_private.h.

◆ STATE_STREAMSRC

#define STATE_STREAMSRC   (STATE_TRANSFORM(WINED3D_TS_WORLD_MATRIX(255)) + 1)

Definition at line 1611 of file wined3d_private.h.

◆ STATE_TEXTURESTAGE

#define STATE_TEXTURESTAGE (   stage,
  num 
)    (STATE_RENDER(WINEHIGHEST_RENDER_STATE) + 1 + (stage) * (WINED3D_HIGHEST_TEXTURE_STATE + 1) + (num))

Definition at line 1584 of file wined3d_private.h.

◆ STATE_TRANSFORM

#define STATE_TRANSFORM (   a)    (STATE_GRAPHICS_UNORDERED_ACCESS_VIEW_BINDING + (a))

Definition at line 1608 of file wined3d_private.h.

◆ STATE_UNORDERED_ACCESS_VIEW_BINDING

#define STATE_UNORDERED_ACCESS_VIEW_BINDING (   a)
Value:

Definition at line 1683 of file wined3d_private.h.

◆ STATE_VDECL

#define STATE_VDECL   (STATE_INDEXBUFFER + 1)

Definition at line 1616 of file wined3d_private.h.

◆ STATE_VIEWPORT

#define STATE_VIEWPORT   (STATE_VDECL + 1)

Definition at line 1619 of file wined3d_private.h.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 39 of file wined3d_private.h.

◆ WINE_GLAPI

#define WINE_GLAPI

Definition at line 31 of file wined3d_private.h.

◆ WINED3D_CONST_NUM_UNUSED

#define WINED3D_CONST_NUM_UNUSED   ~0U

Definition at line 1318 of file wined3d_private.h.

◆ WINED3D_CONSTANT_BUFFER_ALIGNMENT

#define WINED3D_CONSTANT_BUFFER_ALIGNMENT   16

Definition at line 3117 of file wined3d_private.h.

◆ WINED3D_CS_QUERY_POLL_INTERVAL

#define WINED3D_CS_QUERY_POLL_INTERVAL   10u

Definition at line 3537 of file wined3d_private.h.

◆ WINED3D_CS_QUEUE_SIZE

#define WINED3D_CS_QUEUE_SIZE   0x100000u

Definition at line 3538 of file wined3d_private.h.

◆ WINED3D_CS_SPIN_COUNT

#define WINED3D_CS_SPIN_COUNT   10000000u

Definition at line 3542 of file wined3d_private.h.

◆ WINED3D_FBO_ENTRY_FLAG_ATTACHED

#define WINED3D_FBO_ENTRY_FLAG_ATTACHED   0x1

Definition at line 3343 of file wined3d_private.h.

◆ WINED3D_FBO_ENTRY_FLAG_DEPTH

#define WINED3D_FBO_ENTRY_FLAG_DEPTH   0x2

Definition at line 3344 of file wined3d_private.h.

◆ WINED3D_FBO_ENTRY_FLAG_STENCIL

#define WINED3D_FBO_ENTRY_FLAG_STENCIL   0x4

Definition at line 3345 of file wined3d_private.h.

◆ WINED3D_FFP_LIGHT_TYPE_MASK

#define WINED3D_FFP_LIGHT_TYPE_MASK   0x7u

Definition at line 2727 of file wined3d_private.h.

◆ WINED3D_FFP_LIGHT_TYPE_SHIFT

#define WINED3D_FFP_LIGHT_TYPE_SHIFT (   idx)    (3 * (idx))

Definition at line 2726 of file wined3d_private.h.

◆ WINED3D_FFP_TCI_MASK

#define WINED3D_FFP_TCI_MASK   0xffu

Definition at line 2724 of file wined3d_private.h.

◆ WINED3D_FFP_TCI_SHIFT

#define WINED3D_FFP_TCI_SHIFT   16

Definition at line 2723 of file wined3d_private.h.

◆ WINED3D_FRAGMENT_CAP_COLOR_KEY

#define WINED3D_FRAGMENT_CAP_COLOR_KEY   0x00000004

Definition at line 2026 of file wined3d_private.h.

◆ WINED3D_FRAGMENT_CAP_PROJ_CONTROL

#define WINED3D_FRAGMENT_CAP_PROJ_CONTROL   0x00000001

Definition at line 2024 of file wined3d_private.h.

◆ WINED3D_FRAGMENT_CAP_SRGB_WRITE

#define WINED3D_FRAGMENT_CAP_SRGB_WRITE   0x00000002

Definition at line 2025 of file wined3d_private.h.

◆ WINED3D_LOCATION_BUFFER

#define WINED3D_LOCATION_BUFFER   0x00000008

Definition at line 3319 of file wined3d_private.h.

◆ WINED3D_LOCATION_DISCARDED

#define WINED3D_LOCATION_DISCARDED   0x00000001

Definition at line 3316 of file wined3d_private.h.

◆ WINED3D_LOCATION_DRAWABLE

#define WINED3D_LOCATION_DRAWABLE   0x00000040

Definition at line 3322 of file wined3d_private.h.

◆ WINED3D_LOCATION_RB_MULTISAMPLE

#define WINED3D_LOCATION_RB_MULTISAMPLE   0x00000080

Definition at line 3323 of file wined3d_private.h.

◆ WINED3D_LOCATION_RB_RESOLVED

#define WINED3D_LOCATION_RB_RESOLVED   0x00000100

Definition at line 3324 of file wined3d_private.h.

◆ WINED3D_LOCATION_SYSMEM

#define WINED3D_LOCATION_SYSMEM   0x00000002

Definition at line 3317 of file wined3d_private.h.

◆ WINED3D_LOCATION_TEXTURE_RGB

#define WINED3D_LOCATION_TEXTURE_RGB   0x00000010

Definition at line 3320 of file wined3d_private.h.

◆ WINED3D_LOCATION_TEXTURE_SRGB

#define WINED3D_LOCATION_TEXTURE_SRGB   0x00000020

Definition at line 3321 of file wined3d_private.h.

◆ WINED3D_LOCATION_USER_MEMORY

#define WINED3D_LOCATION_USER_MEMORY   0x00000004

Definition at line 3318 of file wined3d_private.h.

◆ WINED3D_MAX_CBS

#define WINED3D_MAX_CBS   15

Definition at line 667 of file wined3d_private.h.

◆ WINED3D_MAX_CONSTS_B

#define WINED3D_MAX_CONSTS_B   16

Definition at line 668 of file wined3d_private.h.

◆ WINED3D_MAX_CONSTS_I

#define WINED3D_MAX_CONSTS_I   16

Definition at line 669 of file wined3d_private.h.

◆ WINED3D_MAX_PS_CONSTS_F

#define WINED3D_MAX_PS_CONSTS_F   224

Definition at line 671 of file wined3d_private.h.

◆ WINED3D_MAX_VS_CONSTS_F

#define WINED3D_MAX_VS_CONSTS_F   256

Definition at line 670 of file wined3d_private.h.

◆ WINED3D_OPENGL_WINDOW_CLASS_NAME

#define WINED3D_OPENGL_WINDOW_CLASS_NAME   "WineD3D_OpenGL"

Definition at line 4546 of file wined3d_private.h.

◆ WINED3D_PACKED_INTERPOLATION_BIT_COUNT

#define WINED3D_PACKED_INTERPOLATION_BIT_COUNT   3

Definition at line 577 of file wined3d_private.h.

◆ WINED3D_PACKED_INTERPOLATION_SIZE

#define WINED3D_PACKED_INTERPOLATION_SIZE   3

Definition at line 576 of file wined3d_private.h.

◆ WINED3D_PSARGS_PROJECTED

#define WINED3D_PSARGS_PROJECTED   (1u << 3)

Definition at line 1332 of file wined3d_private.h.

◆ WINED3D_PSARGS_TEXTRANSFORM_MASK

#define WINED3D_PSARGS_TEXTRANSFORM_MASK   0xfu

Definition at line 1334 of file wined3d_private.h.

◆ WINED3D_PSARGS_TEXTRANSFORM_SHIFT

#define WINED3D_PSARGS_TEXTRANSFORM_SHIFT   4

Definition at line 1333 of file wined3d_private.h.

◆ WINED3D_PSARGS_TEXTYPE_MASK

#define WINED3D_PSARGS_TEXTYPE_MASK   0x3u

Definition at line 1336 of file wined3d_private.h.

◆ WINED3D_PSARGS_TEXTYPE_SHIFT

#define WINED3D_PSARGS_TEXTYPE_SHIFT   2

Definition at line 1335 of file wined3d_private.h.

◆ WINED3D_QUIRK_ALLOWS_SPECULAR_ALPHA

#define WINED3D_QUIRK_ALLOWS_SPECULAR_ALPHA   0x00000008

Definition at line 71 of file wined3d_private.h.

◆ WINED3D_QUIRK_ARB_VS_OFFSET_LIMIT

#define WINED3D_QUIRK_ARB_VS_OFFSET_LIMIT   0x00000001

Definition at line 68 of file wined3d_private.h.

◆ WINED3D_QUIRK_BROKEN_ARB_FOG

#define WINED3D_QUIRK_BROKEN_ARB_FOG   0x00000200

Definition at line 77 of file wined3d_private.h.

◆ WINED3D_QUIRK_BROKEN_RGBA16

#define WINED3D_QUIRK_BROKEN_RGBA16   0x00000040

Definition at line 74 of file wined3d_private.h.

◆ WINED3D_QUIRK_FBO_TEX_UPDATE

#define WINED3D_QUIRK_FBO_TEX_UPDATE   0x00000020

Definition at line 73 of file wined3d_private.h.

◆ WINED3D_QUIRK_GLSL_CLIP_VARYING

#define WINED3D_QUIRK_GLSL_CLIP_VARYING   0x00000004

Definition at line 70 of file wined3d_private.h.

◆ WINED3D_QUIRK_INFO_LOG_SPAM

#define WINED3D_QUIRK_INFO_LOG_SPAM   0x00000080

Definition at line 75 of file wined3d_private.h.

◆ WINED3D_QUIRK_LIMITED_TEX_FILTERING

#define WINED3D_QUIRK_LIMITED_TEX_FILTERING   0x00000100

Definition at line 76 of file wined3d_private.h.

◆ WINED3D_QUIRK_NV_CLIP_BROKEN

#define WINED3D_QUIRK_NV_CLIP_BROKEN   0x00000010

Definition at line 72 of file wined3d_private.h.

◆ WINED3D_QUIRK_SET_TEXCOORD_W

#define WINED3D_QUIRK_SET_TEXCOORD_W   0x00000002

Definition at line 69 of file wined3d_private.h.

◆ WINED3D_SAMPLER_DEFAULT

#define WINED3D_SAMPLER_DEFAULT   ~0x0u

Definition at line 958 of file wined3d_private.h.

◆ WINED3D_SHADER_CAP_DOUBLE_PRECISION

#define WINED3D_SHADER_CAP_DOUBLE_PRECISION   0x00000004

Definition at line 1281 of file wined3d_private.h.

◆ WINED3D_SHADER_CAP_SRGB_WRITE

#define WINED3D_SHADER_CAP_SRGB_WRITE   0x00000002

Definition at line 1280 of file wined3d_private.h.

◆ WINED3D_SHADER_CAP_VS_CLIPPING

#define WINED3D_SHADER_CAP_VS_CLIPPING   0x00000001

Definition at line 1279 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_COLOR_KEY

#define WINED3D_SHADER_CONST_FFP_COLOR_KEY   0x00200000

Definition at line 453 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_LIGHTS

#define WINED3D_SHADER_CONST_FFP_LIGHTS   0x00080000

Definition at line 451 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_MATERIAL

#define WINED3D_SHADER_CONST_FFP_MATERIAL   0x00040000

Definition at line 450 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_MODELVIEW

#define WINED3D_SHADER_CONST_FFP_MODELVIEW   0x00004000

Definition at line 447 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_PROJ

#define WINED3D_SHADER_CONST_FFP_PROJ   0x00010000

Definition at line 448 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_PS

#define WINED3D_SHADER_CONST_FFP_PS   0x00100000

Definition at line 452 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_TEXMATRIX

#define WINED3D_SHADER_CONST_FFP_TEXMATRIX   0x00020000

Definition at line 449 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_VERTEXBLEND

#define WINED3D_SHADER_CONST_FFP_VERTEXBLEND   0xff000000

Definition at line 454 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_FFP_VERTEXBLEND_INDEX

#define WINED3D_SHADER_CONST_FFP_VERTEXBLEND_INDEX (   i)    (0x01000000 << ((i) - 1))

Definition at line 455 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_POS_FIXUP

#define WINED3D_SHADER_CONST_POS_FIXUP   0x00000020

Definition at line 438 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_ALPHA_TEST

#define WINED3D_SHADER_CONST_PS_ALPHA_TEST   0x00000800

Definition at line 444 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_B

#define WINED3D_SHADER_CONST_PS_B   0x00000100

Definition at line 441 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_BUMP_ENV

#define WINED3D_SHADER_CONST_PS_BUMP_ENV   0x00000200

Definition at line 442 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_F

#define WINED3D_SHADER_CONST_PS_F   0x00000040

Definition at line 439 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_FOG

#define WINED3D_SHADER_CONST_PS_FOG   0x00000400

Definition at line 443 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_I

#define WINED3D_SHADER_CONST_PS_I   0x00000080

Definition at line 440 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_NP2_FIXUP

#define WINED3D_SHADER_CONST_PS_NP2_FIXUP   0x00002000

Definition at line 446 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_PS_Y_CORR

#define WINED3D_SHADER_CONST_PS_Y_CORR   0x00001000

Definition at line 445 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_VS_B

#define WINED3D_SHADER_CONST_VS_B   0x00000004

Definition at line 435 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_VS_CLIP_PLANES

#define WINED3D_SHADER_CONST_VS_CLIP_PLANES   0x00000008

Definition at line 436 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_VS_F

#define WINED3D_SHADER_CONST_VS_F   0x00000001

Definition at line 433 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_VS_I

#define WINED3D_SHADER_CONST_VS_I   0x00000002

Definition at line 434 of file wined3d_private.h.

◆ WINED3D_SHADER_CONST_VS_POINTSIZE

#define WINED3D_SHADER_CONST_VS_POINTSIZE   0x00000010

Definition at line 437 of file wined3d_private.h.

◆ WINED3D_SHADER_VERSION

#define WINED3D_SHADER_VERSION (   major,
  minor 
)    (((major) << 8) | (minor))

Definition at line 988 of file wined3d_private.h.

◆ WINED3D_SM1_PS

#define WINED3D_SM1_PS   0xffffu

Definition at line 647 of file wined3d_private.h.

◆ WINED3D_SM1_VS

#define WINED3D_SM1_VS   0xfffeu

Definition at line 646 of file wined3d_private.h.

◆ WINED3D_SM4_GS

#define WINED3D_SM4_GS   0x0002u

Definition at line 650 of file wined3d_private.h.

◆ WINED3D_SM4_PS

#define WINED3D_SM4_PS   0x0000u

Definition at line 648 of file wined3d_private.h.

◆ WINED3D_SM4_VS

#define WINED3D_SM4_VS   0x0001u

Definition at line 649 of file wined3d_private.h.

◆ WINED3D_SM5_CS

#define WINED3D_SM5_CS   0x0005u

Definition at line 653 of file wined3d_private.h.

◆ WINED3D_SM5_DS

#define WINED3D_SM5_DS   0x0004u

Definition at line 652 of file wined3d_private.h.

◆ WINED3D_SM5_HS

#define WINED3D_SM5_HS   0x0003u

Definition at line 651 of file wined3d_private.h.

◆ WINED3D_STATE_INIT_DEFAULT

#define WINED3D_STATE_INIT_DEFAULT   0x00000002

Definition at line 2819 of file wined3d_private.h.

◆ WINED3D_STATE_NO_REF

#define WINED3D_STATE_NO_REF   0x00000001

Definition at line 2818 of file wined3d_private.h.

◆ WINED3D_TEXTURE_ASYNC_COLOR_KEY

#define WINED3D_TEXTURE_ASYNC_COLOR_KEY   0x00000001

Definition at line 3155 of file wined3d_private.h.

◆ WINED3D_TEXTURE_COND_NP2

#define WINED3D_TEXTURE_COND_NP2   0x00000001

Definition at line 3138 of file wined3d_private.h.

◆ WINED3D_TEXTURE_COND_NP2_EMULATED

#define WINED3D_TEXTURE_COND_NP2_EMULATED   0x00000002

Definition at line 3139 of file wined3d_private.h.

◆ WINED3D_TEXTURE_CONVERTED

#define WINED3D_TEXTURE_CONVERTED   0x00000100

Definition at line 3146 of file wined3d_private.h.

◆ WINED3D_TEXTURE_DC_IN_USE

#define WINED3D_TEXTURE_DC_IN_USE   0x00001000

Definition at line 3150 of file wined3d_private.h.

◆ WINED3D_TEXTURE_DISCARD

#define WINED3D_TEXTURE_DISCARD   0x00002000

Definition at line 3151 of file wined3d_private.h.

◆ WINED3D_TEXTURE_GENERATE_MIPMAPS

#define WINED3D_TEXTURE_GENERATE_MIPMAPS   0x00008000

Definition at line 3153 of file wined3d_private.h.

◆ WINED3D_TEXTURE_GET_DC

#define WINED3D_TEXTURE_GET_DC   0x00004000

Definition at line 3152 of file wined3d_private.h.

◆ WINED3D_TEXTURE_GET_DC_LENIENT

#define WINED3D_TEXTURE_GET_DC_LENIENT   0x00000800

Definition at line 3149 of file wined3d_private.h.

◆ WINED3D_TEXTURE_IS_SRGB

#define WINED3D_TEXTURE_IS_SRGB   0x00000008

Definition at line 3141 of file wined3d_private.h.

◆ WINED3D_TEXTURE_NORMALIZED_COORDS

#define WINED3D_TEXTURE_NORMALIZED_COORDS   0x00000400

Definition at line 3148 of file wined3d_private.h.

◆ WINED3D_TEXTURE_PIN_SYSMEM

#define WINED3D_TEXTURE_PIN_SYSMEM   0x00000200

Definition at line 3147 of file wined3d_private.h.

◆ WINED3D_TEXTURE_POW2_MAT_IDENT

#define WINED3D_TEXTURE_POW2_MAT_IDENT   0x00000004

Definition at line 3140 of file wined3d_private.h.

◆ WINED3D_TEXTURE_RGB_ALLOCATED

#define WINED3D_TEXTURE_RGB_ALLOCATED   0x00000010

Definition at line 3142 of file wined3d_private.h.

◆ WINED3D_TEXTURE_RGB_VALID

#define WINED3D_TEXTURE_RGB_VALID   0x00000020

Definition at line 3143 of file wined3d_private.h.

◆ WINED3D_TEXTURE_SRGB_ALLOCATED

#define WINED3D_TEXTURE_SRGB_ALLOCATED   0x00000040

Definition at line 3144 of file wined3d_private.h.

◆ WINED3D_TEXTURE_SRGB_VALID

#define WINED3D_TEXTURE_SRGB_VALID   0x00000080

Definition at line 3145 of file wined3d_private.h.

◆ WINED3D_UNMAPPED_STAGE

#define WINED3D_UNMAPPED_STAGE   ~0u

Definition at line 2915 of file wined3d_private.h.

◆ WINED3DCREATE_MULTITHREADED

#define WINED3DCREATE_MULTITHREADED   0x00000004

Definition at line 2919 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_BLOCKS

#define WINED3DFMT_FLAG_BLOCKS   0x00020000

Definition at line 4287 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_BLOCKS_NO_VERIFY

#define WINED3DFMT_FLAG_BLOCKS_NO_VERIFY   0x00100000

Definition at line 4290 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_BROKEN_PITCH

#define WINED3DFMT_FLAG_BROKEN_PITCH   0x00010000

Definition at line 4286 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_BUMPMAP

#define WINED3DFMT_FLAG_BUMPMAP   0x00000400

Definition at line 4280 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_COMPRESSED

#define WINED3DFMT_FLAG_COMPRESSED   0x00008000

Definition at line 4285 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_DEPTH

#define WINED3DFMT_FLAG_DEPTH   0x00000004

Definition at line 4273 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_EXTENSION

#define WINED3DFMT_FLAG_EXTENSION   0x00000020

Definition at line 4276 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_FBO_ATTACHABLE

#define WINED3DFMT_FLAG_FBO_ATTACHABLE   0x00000040

Definition at line 4277 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB

#define WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB   0x00000080

Definition at line 4278 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_FILTERING

#define WINED3DFMT_FLAG_FILTERING   0x00000002

Definition at line 4272 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_FLOAT

#define WINED3DFMT_FLAG_FLOAT   0x00000200

Definition at line 4279 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_GEN_MIPMAP

#define WINED3DFMT_FLAG_GEN_MIPMAP   0x00400000

Definition at line 4292 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_HEIGHT_SCALE

#define WINED3DFMT_FLAG_HEIGHT_SCALE   0x00040000

Definition at line 4288 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_INTEGER

#define WINED3DFMT_FLAG_INTEGER   0x00200000

Definition at line 4291 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING

#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING   0x00000001

Definition at line 4271 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_RENDERTARGET

#define WINED3DFMT_FLAG_RENDERTARGET   0x00000010

Definition at line 4275 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_SHADOW

#define WINED3DFMT_FLAG_SHADOW   0x00004000

Definition at line 4284 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_SRGB_READ

#define WINED3DFMT_FLAG_SRGB_READ   0x00000800

Definition at line 4281 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_SRGB_WRITE

#define WINED3DFMT_FLAG_SRGB_WRITE   0x00001000

Definition at line 4282 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_STENCIL

#define WINED3DFMT_FLAG_STENCIL   0x00000008

Definition at line 4274 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_TEXTURE

#define WINED3DFMT_FLAG_TEXTURE   0x00080000

Definition at line 4289 of file wined3d_private.h.

◆ WINED3DFMT_FLAG_VTF

#define WINED3DFMT_FLAG_VTF   0x00002000

Definition at line 4283 of file wined3d_private.h.

◆ WINED3DPS_VERSION

#define WINED3DPS_VERSION (   major,
  minor 
)    ((WINED3D_SM1_PS << 16) | ((major) << 8) | (minor))

Definition at line 656 of file wined3d_private.h.

◆ WINED3DSI_INDEXED_DYNAMIC

#define WINED3DSI_INDEXED_DYNAMIC   0x4

Definition at line 624 of file wined3d_private.h.

◆ WINED3DSI_RESINFO_RCP_FLOAT

#define WINED3DSI_RESINFO_RCP_FLOAT   0x1

Definition at line 625 of file wined3d_private.h.

◆ WINED3DSI_RESINFO_UINT

#define WINED3DSI_RESINFO_UINT   0x2

Definition at line 626 of file wined3d_private.h.

◆ WINED3DSI_SAMPLE_INFO_UINT

#define WINED3DSI_SAMPLE_INFO_UINT   0x1

Definition at line 627 of file wined3d_private.h.

◆ WINED3DSI_SAMPLER_COMPARISON_MODE

#define WINED3DSI_SAMPLER_COMPARISON_MODE   0x1

Definition at line 628 of file wined3d_private.h.

◆ WINED3DSI_TEXLD_BIAS

#define WINED3DSI_TEXLD_BIAS   0x2

Definition at line 623 of file wined3d_private.h.

◆ WINED3DSI_TEXLD_PROJECT

#define WINED3DSI_TEXLD_PROJECT   0x1

Definition at line 622 of file wined3d_private.h.

◆ WINED3DSP_NOSWIZZLE

#define WINED3DSP_NOSWIZZLE   (0u | (1u << 2) | (2u << 4) | (3u << 6))

Definition at line 530 of file wined3d_private.h.

◆ WINED3DSP_WRITEMASK_0

#define WINED3DSP_WRITEMASK_0   0x1u /* .x r */

Definition at line 550 of file wined3d_private.h.

◆ WINED3DSP_WRITEMASK_1

#define WINED3DSP_WRITEMASK_1   0x2u /* .y g */

Definition at line 551 of file wined3d_private.h.

◆ WINED3DSP_WRITEMASK_2

#define WINED3DSP_WRITEMASK_2   0x4u /* .z b */

Definition at line 552 of file wined3d_private.h.

◆ WINED3DSP_WRITEMASK_3

#define WINED3DSP_WRITEMASK_3   0x8u /* .w a */

Definition at line 553 of file wined3d_private.h.

◆ WINED3DSP_WRITEMASK_ALL

#define WINED3DSP_WRITEMASK_ALL   0xfu /* all */

Definition at line 554 of file wined3d_private.h.

◆ WINED3DVS_VERSION

#define WINED3DVS_VERSION (   major,
  minor 
)    ((WINED3D_SM1_VS << 16) | ((major) << 8) | (minor))

Definition at line 657 of file wined3d_private.h.

Typedef Documentation

◆ APPLYSTATEFUNC

typedef void(* APPLYSTATEFUNC) (struct wined3d_context *ctx, const struct wined3d_state *state, DWORD state_id)

Definition at line 2009 of file wined3d_private.h.

◆ SHADER_HANDLER

typedef void(* SHADER_HANDLER) (const struct wined3d_shader_instruction *)

Definition at line 1277 of file wined3d_private.h.

◆ wined3d_ffp_attrib_func

typedef void(WINE_GLAPI * wined3d_ffp_attrib_func) (const void *data)

Definition at line 172 of file wined3d_private.h.

◆ wined3d_ffp_texcoord_func

typedef void(WINE_GLAPI * wined3d_ffp_texcoord_func) (GLenum unit, const void *data)

Definition at line 173 of file wined3d_private.h.

◆ wined3d_generic_attrib_func

typedef void(WINE_GLAPI * wined3d_generic_attrib_func) (GLuint idx, const void *data)

Definition at line 174 of file wined3d_private.h.

Enumeration Type Documentation

◆ complex_fixup

Enumerator
COMPLEX_FIXUP_NONE 
COMPLEX_FIXUP_YUY2 
COMPLEX_FIXUP_UYVY 
COMPLEX_FIXUP_YV12 
COMPLEX_FIXUP_P8 
COMPLEX_FIXUP_NV12 

Definition at line 136 of file wined3d_private.h.

◆ dst_arg

Enumerator
resultreg 
tempreg 

Definition at line 2650 of file wined3d_private.h.

2651 {
2652  resultreg = 0,
2653  tempreg = 1
2654 };

◆ fixup_channel_source

Enumerator
CHANNEL_SOURCE_ZERO 
CHANNEL_SOURCE_ONE 
CHANNEL_SOURCE_X 
CHANNEL_SOURCE_Y 
CHANNEL_SOURCE_Z 
CHANNEL_SOURCE_W 
CHANNEL_SOURCE_COMPLEX0 
CHANNEL_SOURCE_COMPLEX1 

Definition at line 124 of file wined3d_private.h.

◆ fog_src_type

Enumerator
VS_FOG_Z 
VS_FOG_COORD 

Definition at line 1369 of file wined3d_private.h.

1370 {
1371  VS_FOG_Z = 0,
1372  VS_FOG_COORD = 1
1373 };

◆ fogsource

Enumerator
FOGSOURCE_FFP 
FOGSOURCE_VS 
FOGSOURCE_COORD 

Definition at line 1686 of file wined3d_private.h.

◆ projection_types

Enumerator
proj_none 
proj_count3 
proj_count4 

Definition at line 2643 of file wined3d_private.h.

2644 {
2645  proj_none = 0,
2646  proj_count3 = 1,
2647  proj_count4 = 2
2648 };

◆ vertexprocessing_mode

Enumerator
fixedfunction 
vertexshader 
pretransformed 

Definition at line 1312 of file wined3d_private.h.

◆ wined3d_blit_op

Enumerator
WINED3D_BLIT_OP_COLOR_BLIT 
WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST 
WINED3D_BLIT_OP_COLOR_BLIT_CKEY 
WINED3D_BLIT_OP_COLOR_FILL 
WINED3D_BLIT_OP_DEPTH_FILL 
WINED3D_BLIT_OP_DEPTH_BLIT 
WINED3D_BLIT_OP_RAW_BLIT 

Definition at line 2098 of file wined3d_private.h.

◆ wined3d_buffer_conversion_type

Enumerator
CONV_NONE 
CONV_D3DCOLOR 
CONV_POSITIONT 

Definition at line 3696 of file wined3d_private.h.

◆ wined3d_cs_queue_id

Enumerator
WINED3D_CS_QUEUE_DEFAULT 
WINED3D_CS_QUEUE_MAP 
WINED3D_CS_QUEUE_COUNT 

Definition at line 3520 of file wined3d_private.h.

◆ wined3d_data_type

Enumerator
WINED3D_DATA_FLOAT 
WINED3D_DATA_INT 
WINED3D_DATA_RESOURCE 
WINED3D_DATA_SAMPLER 
WINED3D_DATA_UAV 
WINED3D_DATA_UINT 
WINED3D_DATA_UNORM 
WINED3D_DATA_SNORM 
WINED3D_DATA_OPAQUE 

Definition at line 511 of file wined3d_private.h.

◆ wined3d_fence_result

Enumerator
WINED3D_FENCE_OK 
WINED3D_FENCE_WAITING 
WINED3D_FENCE_NOT_STARTED 
WINED3D_FENCE_WRONG_THREAD 
WINED3D_FENCE_ERROR 

Definition at line 1698 of file wined3d_private.h.

1699 {
1703