ReactOS 0.4.16-dev-336-gb667d82
|
Go to the source code of this file.
Macros | |
#define | WINED3D_MAX_FBO_ENTRIES 64 |
#define | WINED3D_ALL_LAYERS (~0u) |
#define | SI_FORMAT(idx) (si->elements[(idx)].format->emit_idx) |
#define | SI_PTR(idx1, idx2) (si->elements[(idx1)].data.addr + si->elements[(idx1)].stride * (idx2)) |
Typedefs | |
typedef void() | context_fbo_entry_func_t(struct wined3d_context *context, struct fbo_entry *entry) |
Variables | |
static DWORD | wined3d_context_tls_idx |
#define SI_PTR | ( | idx1, | |
idx2 | |||
) | (si->elements[(idx1)].data.addr + si->elements[(idx1)].stride * (idx2)) |
struct wined3d_context * context_acquire | ( | const struct wined3d_device * | device, |
struct wined3d_texture * | texture, | ||
unsigned int | sub_resource_idx | ||
) |
Definition at line 4242 of file context.c.
Referenced by buffer_resource_preload(), buffer_unload(), context_reacquire(), context_restore(), create_texture_view(), device_clear_render_targets(), dispatch_compute(), draw_primitive(), fb_copy_to_texture_direct(), fb_copy_to_texture_hwstretch(), read_from_framebuffer(), shader_arb_destroy(), shader_glsl_destroy(), shader_glsl_precompile(), shader_resource_view_generate_mipmaps(), surface_blt_fbo(), surface_convert_format(), surface_cpu_blt(), surface_cpu_blt_colour_fill(), surface_depth_blt_fbo(), surface_load_drawable(), surface_load_fb_texture(), surface_upload_from_surface(), swapchain_gl_frontbuffer_updated(), swapchain_gl_present(), texture2d_cleanup_sub_resources(), texture2d_create_dc(), texture2d_destroy_dc(), texture_resource_preload(), texture_resource_sub_resource_map(), texture_resource_sub_resource_unmap(), wined3d_buffer_copy(), wined3d_buffer_destroy_object(), wined3d_buffer_map(), wined3d_buffer_unmap(), wined3d_cs_exec_add_dirty_texture_region(), wined3d_cs_exec_blt_sub_resource(), wined3d_cs_exec_clear_unordered_access_view(), wined3d_cs_exec_copy_uav_counter(), wined3d_cs_exec_flush(), wined3d_cs_exec_update_sub_resource(), wined3d_device_create_primary_opengl_context_cs(), wined3d_device_delete_opengl_contexts_cs(), wined3d_fence_issue(), wined3d_fence_test(), wined3d_fence_wait(), wined3d_occlusion_query_ops_issue(), wined3d_pipeline_query_ops_issue(), wined3d_rendertarget_view_destroy_object(), wined3d_sampler_cs_init(), wined3d_sampler_destroy_object(), wined3d_shader_resource_view_cs_init(), wined3d_shader_resource_view_destroy_object(), wined3d_so_statistics_query_ops_issue(), wined3d_surface_blt(), wined3d_swapchain_update_swap_interval_cs(), wined3d_texture_cleanup(), wined3d_texture_copy_sysmem_location(), wined3d_texture_unload(), wined3d_texture_unload_gl_texture(), wined3d_texture_update_map_binding(), wined3d_timestamp_query_ops_issue(), wined3d_unordered_access_view_cs_init(), wined3d_unordered_access_view_destroy_object(), and wined3d_unordered_access_view_set_counter().
|
static |
Definition at line 4222 of file context.c.
Referenced by context_acquire(), and context_reacquire().
void context_active_texture | ( | struct wined3d_context * | context, |
const struct wined3d_gl_info * | gl_info, | ||
unsigned int | unit | ||
) |
Definition at line 2717 of file context.c.
Referenced by context_create(), create_dummy_textures(), nvrc_colorop(), nvts_bumpenvmat(), sampler(), set_tex_op_atifs(), SetupForBlit(), state_texfactor(), tex_alphaop(), tex_colorop(), tex_coordindex(), transform_texture(), upload_palette(), and wined3d_shader_resource_view_bind().
void context_alloc_fence | ( | struct wined3d_context * | context, |
struct wined3d_fence * | fence | ||
) |
Definition at line 863 of file context.c.
Referenced by wined3d_fence_issue().
void context_alloc_occlusion_query | ( | struct wined3d_context * | context, |
struct wined3d_occlusion_query * | query | ||
) |
Definition at line 816 of file context.c.
Referenced by wined3d_occlusion_query_ops_issue().
void context_alloc_pipeline_statistics_query | ( | struct wined3d_context * | context, |
struct wined3d_pipeline_statistics_query * | query | ||
) |
void context_alloc_so_statistics_query | ( | struct wined3d_context * | context, |
struct wined3d_so_statistics_query * | query | ||
) |
Definition at line 961 of file context.c.
Referenced by wined3d_so_statistics_query_ops_issue().
void context_alloc_timestamp_query | ( | struct wined3d_context * | context, |
struct wined3d_timestamp_query * | query | ||
) |
Definition at line 923 of file context.c.
Referenced by wined3d_timestamp_query_ops_issue().
void context_apply_blit_state | ( | struct wined3d_context * | context, |
const struct wined3d_device * | device | ||
) |
Definition at line 2981 of file context.c.
Referenced by arbfp_blitter_blit(), fb_copy_to_texture_direct(), fb_copy_to_texture_hwstretch(), ffp_blitter_blit(), and read_from_framebuffer().
BOOL context_apply_clear_state | ( | struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
UINT | rt_count, | ||
const struct wined3d_fb_state * | fb | ||
) |
Definition at line 3047 of file context.c.
Referenced by device_clear_render_targets().
|
static |
Definition at line 4060 of file context.c.
Referenced by dispatch_compute().
|
static |
Definition at line 2652 of file context.c.
Referenced by context_apply_blit_state(), context_apply_clear_state(), context_state_drawbuf(), and context_state_fb().
|
static |
Definition at line 3947 of file context.c.
Referenced by draw_primitive().
|
static |
Definition at line 711 of file context.c.
Referenced by context_apply_fbo_state().
|
static |
Definition at line 763 of file context.c.
Referenced by context_apply_clear_state(), context_apply_fbo_state_blit(), and context_state_fb().
void context_apply_fbo_state_blit | ( | struct wined3d_context * | context, |
GLenum | target, | ||
struct wined3d_surface * | render_target, | ||
struct wined3d_surface * | depth_stencil, | ||
DWORD | location | ||
) |
Definition at line 802 of file context.c.
Referenced by arbfp_blitter_blit(), context_apply_blit_state(), ffp_blitter_blit(), read_from_framebuffer(), surface_blt_fbo(), and surface_depth_blt_fbo().
|
static |
Definition at line 178 of file context.c.
Referenced by context_apply_fbo_entry().
|
static |
Definition at line 115 of file context.c.
Referenced by context_attach_depth_stencil_fbo().
|
static |
Definition at line 131 of file context.c.
Referenced by context_attach_depth_stencil_fbo(), and context_attach_surface_fbo().
|
static |
Definition at line 218 of file context.c.
Referenced by context_apply_fbo_entry().
void context_bind_bo | ( | struct wined3d_context * | context, |
GLenum | binding, | ||
GLuint | name | ||
) |
Definition at line 2724 of file context.c.
Referenced by buffer_bind(), context_copy_bo_address(), context_map_bo_address(), context_unmap_bo_address(), and wined3d_unordered_access_view_clear_uint().
void context_bind_dummy_textures | ( | const struct wined3d_device * | device, |
const struct wined3d_context * | context | ||
) |
Definition at line 1764 of file context.c.
Referenced by context_create(), and create_dummy_textures().
|
static |
Definition at line 53 of file context.c.
Referenced by context_apply_blit_state(), context_apply_compute_state(), context_apply_fbo_entry(), context_apply_fbo_state(), context_destroy_fbo(), and context_reuse_fbo_entry().
|
static |
Definition at line 3802 of file context.c.
Referenced by context_apply_compute_state(), and context_apply_draw_state().
void context_bind_texture | ( | struct wined3d_context * | context, |
GLenum | target, | ||
GLuint | name | ||
) |
Definition at line 2734 of file context.c.
Referenced by create_buffer_texture(), create_texture_view(), draw_textured_quad(), fb_copy_to_texture_direct(), fb_copy_to_texture_hwstretch(), sampler(), shader_resource_view_bind_and_dirtify(), wined3d_shader_resource_view_bind(), and wined3d_texture_bind().
|
static |
Definition at line 3881 of file context.c.
Referenced by context_apply_compute_state(), and context_apply_draw_state().
void context_check_fbo_status | ( | const struct wined3d_context * | context, |
GLenum | target | ||
) |
Definition at line 381 of file context.c.
Referenced by arbfp_blitter_blit(), context_apply_blit_state(), context_apply_clear_state(), context_apply_draw_state(), ffp_blitter_blit(), read_from_framebuffer(), surface_blt_fbo(), and surface_depth_blt_fbo().
|
static |
Definition at line 1667 of file context.c.
Referenced by context_create().
|
static |
Definition at line 86 of file context.c.
Referenced by context_destroy_fbo(), and context_reuse_fbo_entry().
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 | ||
) |
Definition at line 2846 of file context.c.
Referenced by wined3d_buffer_copy(), and wined3d_unordered_access_view_copy_counter().
struct wined3d_context * context_create | ( | struct wined3d_swapchain * | swapchain, |
struct wined3d_texture * | target, | ||
const struct wined3d_format * | ds_format | ||
) |
Definition at line 1891 of file context.c.
Referenced by swapchain_create_context(), and wined3d_swapchain_cs_init().
|
static |
Definition at line 521 of file context.c.
Referenced by context_find_fbo_entry().
HGLRC context_create_wgl_attribs | ( | const struct wined3d_gl_info * | gl_info, |
HDC | hdc, | ||
HGLRC | share_ctx | ||
) |
Definition at line 1857 of file context.c.
Referenced by context_create(), and wined3d_caps_gl_ctx_create_attribs().
|
static |
Definition at line 1826 of file context.c.
Referenced by context_create(), and context_create_wgl_attribs().
void context_destroy | ( | struct wined3d_device * | device, |
struct wined3d_context * | context | ||
) |
Definition at line 2290 of file context.c.
Referenced by context_release(), swapchain_create_context(), swapchain_destroy_contexts(), and wined3d_device_delete_opengl_contexts_cs().
|
static |
Definition at line 103 of file context.c.
Referenced by context_destroy_fbo_entry().
|
static |
Definition at line 568 of file context.c.
Referenced by context_apply_fbo_state(), and context_destroy_gl_resources().
|
static |
Definition at line 1332 of file context.c.
Referenced by context_destroy(), and context_set_current().
|
static |
Definition at line 244 of file context.c.
Referenced by context_check_fbo_status().
void context_enable_clip_distances | ( | struct wined3d_context * | context, |
unsigned int | enable_mask | ||
) |
Definition at line 2414 of file context.c.
Referenced by SetupForBlit(), shader_glsl_select(), state_clipping(), and vertexdeclaration().
void context_end_transform_feedback | ( | struct wined3d_context * | context | ) |
Definition at line 4127 of file context.c.
Referenced by buffer_destroy_buffer_object(), context_pause_transform_feedback(), and state_so().
|
static |
Definition at line 1619 of file context.c.
Referenced by context_activate(), and context_create().
|
static |
Definition at line 1041 of file context.c.
Referenced by context_gl_resource_released().
|
static |
Definition at line 581 of file context.c.
Referenced by context_apply_fbo_state().
void context_free_fence | ( | struct wined3d_fence * | fence | ) |
Definition at line 904 of file context.c.
Referenced by wined3d_fence_free(), and wined3d_fence_issue().
void context_free_occlusion_query | ( | struct wined3d_occlusion_query * | query | ) |
Definition at line 844 of file context.c.
Referenced by wined3d_occlusion_query_ops_destroy(), and wined3d_occlusion_query_ops_issue().
void context_free_pipeline_statistics_query | ( | struct wined3d_pipeline_statistics_query * | query | ) |
Definition at line 1021 of file context.c.
Referenced by wined3d_pipeline_query_ops_destroy(), and wined3d_pipeline_query_ops_issue().
void context_free_so_statistics_query | ( | struct wined3d_so_statistics_query * | query | ) |
Definition at line 983 of file context.c.
Referenced by wined3d_so_statistics_query_ops_destroy(), and wined3d_so_statistics_query_ops_issue().
void context_free_timestamp_query | ( | struct wined3d_timestamp_query * | query | ) |
Definition at line 943 of file context.c.
Referenced by wined3d_timestamp_query_ops_destroy(), and wined3d_timestamp_query_ops_issue().
|
static |
Definition at line 505 of file context.c.
Referenced by context_create_fbo_entry(), context_find_fbo_entry(), and context_reuse_fbo_entry().
Definition at line 414 of file context.c.
Referenced by context_create(), context_create_fbo_entry(), context_generate_rt_mask_no_fbo(), and context_set_draw_buffer().
|
inlinestatic |
Definition at line 420 of file context.c.
Referenced by context_apply_blit_state(), context_apply_clear_state(), context_generate_rt_mask_no_fbo(), and find_draw_buffers_mask().
|
static |
Definition at line 2970 of file context.c.
Referenced by context_apply_blit_state(), context_apply_clear_state(), and find_draw_buffers_mask().
struct wined3d_context * context_get_current | ( | void | ) |
Definition at line 1507 of file context.c.
Referenced by context_acquire(), context_activate(), context_enter(), context_release(), context_set_current(), diffuse_d3dcolor(), generic_d3dcolor(), generic_float16_2(), generic_float16_4(), generic_short2n(), generic_ushort2n(), position_d3dcolor(), position_float4(), shader_arb_update_float_pixel_constants(), shader_arb_update_float_vertex_constants(), specular_d3dcolor(), wine_glColor4f(), wine_glDisable(), wine_glEnable(), wine_glFogCoordfEXT(), wine_glFogf(), wine_glFogfv(), wine_glFogi(), wine_glFogiv(), wine_glMultiTexCoord1fARB(), wine_glMultiTexCoord1fvARB(), wine_glMultiTexCoord2fARB(), wine_glMultiTexCoord2fvARB(), wine_glMultiTexCoord2svARB(), wine_glMultiTexCoord3fARB(), wine_glMultiTexCoord3fvARB(), wine_glMultiTexCoord4fARB(), wine_glMultiTexCoord4fvARB(), wine_glMultiTexCoord4svARB(), and wine_glVertex4f().
GLenum context_get_offscreen_gl_buffer | ( | const struct wined3d_context * | context | ) |
Definition at line 2954 of file context.c.
Referenced by context_generate_rt_mask_no_fbo(), fb_copy_to_texture_direct(), fb_copy_to_texture_hwstretch(), read_from_framebuffer(), and surface_load_fb_texture().
|
static |
Definition at line 2393 of file context.c.
Referenced by SetupForBlit().
const DWORD * context_get_tex_unit_mapping | ( | const struct wined3d_context * | context, |
const struct wined3d_shader_version * | shader_version, | ||
unsigned int * | base, | ||
unsigned int * | count | ||
) |