ReactOS 0.4.16-dev-197-g92996da
|
Go to the source code of this file.
Classes | |
struct | wined3d_format_channels |
struct | wined3d_typed_format_info |
struct | wined3d_typeless_format_depth_stencil_info |
struct | wined3d_format_ddi_info |
struct | wined3d_format_base_flags |
struct | wined3d_format_block_info |
struct | wined3d_format_vertex_info |
struct | wined3d_format_texture_info |
struct | wined3d_format_srgb_info |
struct | debug_buffer |
Variables | |
struct { | |
enum wined3d_format_id id | |
unsigned int idx | |
} | format_index_remap [] |
static const struct wined3d_format_channels | formats [] |
static const struct wined3d_typed_format_info | typed_formats [] |
static const struct wined3d_typeless_format_depth_stencil_info | typeless_depth_stencil_formats [] |
static const struct wined3d_format_ddi_info | ddi_formats [] |
static const struct wined3d_format_base_flags | format_base_flags [] |
static const struct wined3d_format_block_info | format_block_info [] |
static const struct wined3d_format_vertex_info | format_vertex_info [] |
static const struct wined3d_format_texture_info | format_texture_info [] |
static const struct wined3d_format_srgb_info | format_srgb_info [] |
#define ARG0 0x04 |
#define ARG1 0x01 |
#define ARG2 0x02 |
#define LOCATION_TO_STR | ( | x | ) | if (location & x) { debug_append(&buffer, #x, " | "); location &= ~x; } |
#define WINED3D_FORMAT_COUNT (WINED3D_FORMAT_FOURCC_BASE + ARRAY_SIZE(format_index_remap)) |
#define WINED3D_FORMAT_FOURCC_BASE (WINED3DFMT_BC7_UNORM_SRGB + 1) |
#define WINED3DUSAGEQUERY_TO_STR | ( | x | ) | if (usage & x) { debug_append(&buffer, #x, " | "); usage &= ~x; } |
Definition at line 179 of file utils.c.
void add_ffp_frag_shader | ( | struct wine_rb_tree * | shaders, |
struct ffp_frag_desc * | desc | ||
) |
Definition at line 6083 of file utils.c.
Referenced by fragment_prog_arbfp(), set_tex_op_atifs(), and shader_glsl_find_ffp_fragment_shader().
|
static |
Definition at line 3203 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 3499 of file utils.c.
Referenced by init_format_vertex_info().
|
static |
Definition at line 2234 of file utils.c.
Referenced by init_format_fbo_compat_info().
|
static |
Definition at line 3038 of file utils.c.
Referenced by init_format_filter_info().
|
static |
Definition at line 890 of file utils.c.
Referenced by convert_b5g5r5x1_unorm_b5g5r5a1_unorm_color_key(), convert_b5g6r5_unorm_b5g5r5a1_unorm_color_key(), convert_b8g8r8_unorm_b8g8r8a8_unorm_color_key(), convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key(), and convert_b8g8r8x8_unorm_b8g8r8a8_unorm_color_key().
Definition at line 3025 of file utils.c.
Referenced by check_filter().
Definition at line 5308 of file utils.c.
Referenced by wined3d_format_get_float_color_key().
|
static |
Definition at line 4984 of file utils.c.
Referenced by get_texture_matrix().
|
static |
Definition at line 957 of file utils.c.
Referenced by wined3d_format_get_color_key_conversion().
|
static |
Definition at line 934 of file utils.c.
Referenced by wined3d_format_get_color_key_conversion().
|
static |
Definition at line 980 of file utils.c.
Referenced by wined3d_format_get_color_key_conversion().
|
static |
Definition at line 1024 of file utils.c.
Referenced by wined3d_format_get_color_key_conversion().
|
static |
|
static |
Definition at line 445 of file utils.c.
|
static |
Definition at line 898 of file utils.c.
Referenced by wined3d_format_get_color_key_conversion().
|
static |
|
static |
|
static |
|
static |
Definition at line 473 of file utils.c.
|
static |
Definition at line 505 of file utils.c.
|
static |
Definition at line 544 of file utils.c.
|
static |
|
static |
Definition at line 615 of file utils.c.
|
static |
Definition at line 644 of file utils.c.
|
static |
|
static |
Definition at line 778 of file utils.c.
|
static |
|
static |
|
static |
Definition at line 1780 of file utils.c.
Referenced by init_format_texture_info(), and init_typeless_formats().
|
static |
Definition at line 2003 of file utils.c.
Referenced by check_fbo_compat().
|
static |
const char * debug_box | ( | const struct wined3d_box * | box | ) |
Definition at line 3939 of file utils.c.
Referenced by surface_cpu_blt(), surface_cpu_blt_colour_fill(), texture3d_upload_data(), texture_resource_sub_resource_map(), wined3d_cs_exec_blt_sub_resource(), wined3d_device_copy_sub_resource_region(), wined3d_device_update_sub_resource(), wined3d_resource_map(), wined3d_resource_update_info(), wined3d_texture_add_dirty_region(), and wined3d_texture_check_box_dimensions().
const char * debug_color | ( | const struct wined3d_color * | color | ) |
Definition at line 3948 of file utils.c.
Referenced by state_ambient(), state_specularenable(), surface_cpu_blt_colour_fill(), wined3d_device_clear(), wined3d_device_clear_rendertarget_view(), wined3d_device_get_material(), wined3d_device_set_light(), and wined3d_format_convert_from_float().
|
static |
Definition at line 4834 of file utils.c.
Referenced by dump_color_fixup_desc().
const char * debug_d3ddeclmethod | ( | enum wined3d_decl_method | method | ) |
Definition at line 4270 of file utils.c.
Referenced by dump_wined3d_vertex_element().
const char * debug_d3ddeclusage | ( | enum wined3d_decl_usage | usage | ) |
Definition at line 4289 of file utils.c.
Referenced by dump_wined3d_vertex_element(), fixed_get_input(), and wined3d_stream_info_from_declaration().
const char * debug_d3ddevicetype | ( | enum wined3d_device_type | device_type | ) |
Definition at line 4153 of file utils.c.
Referenced by wined3d_check_depth_stencil_match(), wined3d_check_device_format(), wined3d_check_device_format_conversion(), wined3d_check_device_multisample_type(), wined3d_check_device_type(), and wined3d_get_device_caps().
const char * debug_d3dformat | ( | enum wined3d_format_id | format_id | ) |
Definition at line 3980 of file utils.c.
Referenced by buffer_check_attribute(), buffer_init(), buffer_process_converted_attribute(), check_fbo_compat(), CheckRenderTargetCapability(), context_choose_pixel_format(), context_find_fbo_entry(), cpu_blitter_clear(), draw_primitive_immediate_mode(), dump_wined3d_vertex_element(), get_format_internal(), init_format_depth_bias_scale(), init_format_fbo_compat_info(), init_format_filter_info(), init_format_vertex_info(), query_format_flag(), query_view_class(), resource_init(), state_depthbias(), surface_convert_format(), surface_cpu_blt(), surface_cpu_blt_colour_fill(), surface_cpu_blt_compressed(), surface_depth_blt_fbo(), surface_download_data(), swapchain_init(), texture1d_download_data(), texture2d_create_dc(), texture2d_prepare_texture(), texture3d_download_data(), validate_resource_view(), vertexdeclaration_init(), wined3d_calculate_format_pitch(), wined3d_check_depth_stencil_match(), wined3d_check_device_format(), wined3d_check_device_format_conversion(), wined3d_check_device_multisample_type(), wined3d_check_device_type(), wined3d_device_copy_resource(), wined3d_device_copy_sub_resource_region(), wined3d_device_reset(), wined3d_device_resolve_sub_resource(), wined3d_device_set_cursor_properties(), wined3d_device_set_index_buffer(), wined3d_dxt1_decode(), wined3d_dxt1_encode(), wined3d_dxt3_decode(), wined3d_dxt3_encode(), wined3d_dxt5_decode(), wined3d_dxt5_encode(), wined3d_enum_adapter_modes(), wined3d_find_closest_matching_adapter_mode(), wined3d_format_convert_from_float(), wined3d_format_get_color_key_conversion(), wined3d_format_get_float_color_key(), wined3d_get_adapter_display_mode(), wined3d_get_adapter_mode_count(), wined3d_get_format(), wined3d_render_target_view_cs_init(), wined3d_set_adapter_display_mode(), wined3d_shader_resource_view_cs_init(), wined3d_stream_info_from_declaration(), wined3d_surface_upload_data(), wined3d_swapchain_cs_init(), wined3d_swapchain_get_display_mode(), wined3d_swapchain_resize_buffers(), wined3d_texture_init(), wined3d_texture_update_desc(), and wined3d_unordered_access_view_clear_uint().
const char * debug_d3dinput_classification | ( | enum wined3d_input_classification | classification | ) |
Definition at line 4315 of file utils.c.
Referenced by dump_wined3d_vertex_element(), and wined3d_stream_info_from_declaration().
const char * debug_d3dprimitivetype | ( | enum wined3d_primitive_type | primitive_type | ) |
Definition at line 4346 of file utils.c.
Referenced by d3d_primitive_type_from_gl(), gl_primitive_type_from_d3d(), glsl_primitive_type_from_d3d(), wined3d_device_get_primitive_type(), and wined3d_device_set_primitive_type().
const char * debug_d3drenderstate | ( | enum wined3d_render_state | state | ) |
Definition at line 4370 of file utils.c.
Referenced by debug_d3dstate(), wined3d_device_get_render_state(), and wined3d_device_set_render_state().
const char * debug_d3dresourcetype | ( | enum wined3d_resource_type | resource_type | ) |
Definition at line 4329 of file utils.c.
Referenced by context_generate_rt_mask_from_resource(), context_set_fbo_key_for_render_target(), device_resource_released(), resource_init(), surface_set_compatible_renderbuffer(), wined3d_check_device_format(), wined3d_cs_exec_blt_sub_resource(), wined3d_device_clear_rendertarget_view(), wined3d_device_copy_resource(), wined3d_device_copy_sub_resource_region(), wined3d_device_decref(), wined3d_device_resolve_sub_resource(), wined3d_device_update_sub_resource(), wined3d_render_target_view_cs_init(), wined3d_rendertarget_view_prepare_location(), wined3d_rendertarget_view_validate_location(), wined3d_resource_update_info(), wined3d_texture_create(), wined3d_texture_get_dc(), wined3d_texture_init(), wined3d_texture_release_dc(), wined3d_texture_unload(), wined3d_texture_update_desc(), and wined3d_unordered_access_view_clear_uint().
const char * debug_d3dsamplerstate | ( | enum wined3d_sampler_state | state | ) |
Definition at line 4514 of file utils.c.
Referenced by wined3d_device_get_sampler_state(), and wined3d_device_set_sampler_state().
Definition at line 4676 of file utils.c.
Referenced by compile_state_table(), state_cb_warn(), state_nop(), state_undefined(), and validate_state_table().
const char * debug_d3dtexturefiltertype | ( | enum wined3d_texture_filter_type | filter_type | ) |
Definition at line 4539 of file utils.c.
Referenced by surface_blt_fbo(), surface_blt_special(), surface_cpu_blt(), wined3d_surface_blt(), and wined3d_texture_blt().
const char * debug_d3dtexturestate | ( | enum wined3d_texture_stage_state | state | ) |
Definition at line 4559 of file utils.c.
Referenced by debug_d3dstate(), wined3d_device_get_texture_stage_state(), and wined3d_device_set_texture_stage_state().
const char * debug_d3dtop | ( | enum wined3d_texture_op | d3dtop | ) |
Definition at line 4589 of file utils.c.
Referenced by set_tex_op(), and set_tex_op_nvrc().
const char * debug_d3dtstype | ( | enum wined3d_transform_state | tstype | ) |
Definition at line 4627 of file utils.c.
Referenced by debug_d3dstate(), wined3d_device_get_transform(), wined3d_device_multiply_transform(), and wined3d_device_set_transform().
Definition at line 4217 of file utils.c.
Referenced by buffer_create_buffer_object(), wined3d_check_device_format(), wined3d_surface_blt(), and wined3d_texture_init().
Definition at line 4249 of file utils.c.
Referenced by wined3d_check_device_format().
Definition at line 4745 of file utils.c.
Referenced by context_dump_fbo_attachment().
Definition at line 4774 of file utils.c.
Referenced by context_check_fbo_status().
|
static |
Definition at line 4814 of file utils.c.
Referenced by dump_color_fixup_desc().
Definition at line 4796 of file utils.c.
Referenced by buffer_create_buffer_object(), match_allows_spec_alpha(), and wined3d_check_gl_call().
const char * debug_ivec4 | ( | const struct wined3d_ivec4 * | v | ) |
Definition at line 3956 of file utils.c.
Referenced by wined3d_device_set_ps_consts_i(), wined3d_device_set_vs_consts_i(), and wined3d_stateblock_capture().
const char * debug_shader_type | ( | enum wined3d_shader_type | type | ) |
Definition at line 4658 of file utils.c.
Referenced by arb_get_helper_value(), and debug_d3dstate().
const char * debug_uvec4 | ( | const struct wined3d_uvec4 * | v | ) |
Definition at line 3964 of file utils.c.
Referenced by wined3d_device_clear_unordered_access_view_uint().
const char * debug_vec4 | ( | const struct wined3d_vec4 * | v | ) |
Definition at line 3972 of file utils.c.
Referenced by shader_arb_load_constants_f(), wined3d_device_set_ps_consts_f(), wined3d_device_set_vs_consts_f(), and wined3d_stateblock_capture().
|
static |
Definition at line 1979 of file utils.c.
Referenced by check_fbo_compat().
|
static |
Definition at line 2104 of file utils.c.
Referenced by check_fbo_compat(), wined3d_adapter_find_polyoffset_scale(), and wined3d_caps_gl_ctx_test_viewport_subpixel_bits().
void dump_color_fixup_desc | ( | struct color_fixup_desc | fixup | ) |
Definition at line 4851 of file utils.c.
Referenced by apply_format_fixups(), arbfp_blit_supported(), and ffp_blit_supported().
const struct ffp_frag_desc * find_ffp_frag_shader | ( | const struct wine_rb_tree * | fragment_shaders, |
const struct ffp_frag_settings * | settings | ||
) |
Definition at line 6076 of file utils.c.
Referenced by fragment_prog_arbfp(), set_tex_op_atifs(), and shader_glsl_find_ffp_fragment_shader().
|
static |
Definition at line 1795 of file utils.c.
Referenced by apply_format_fixups(), check_fbo_compat(), init_format_fbo_compat_info(), init_format_texture_info(), and query_internal_format().
|
static |
Definition at line 1787 of file utils.c.
Referenced by apply_format_fixups(), init_format_base_info(), init_format_block_info(), init_format_filter_info(), init_format_texture_info(), and query_internal_format().
void gen_ffp_frag_op | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
struct ffp_frag_settings * | settings, | ||
BOOL | ignore_textype | ||
) |
Definition at line 5751 of file utils.c.
Referenced by fragment_prog_arbfp(), set_glsl_shader_program(), and set_tex_op_atifs().
Definition at line 5717 of file utils.c.
Referenced by d3d_device3_Begin(), d3d_device7_DrawIndexedPrimitive(), d3d_device7_DrawIndexedPrimitiveStrided(), d3d_device7_DrawIndexedPrimitiveVB(), d3d_device7_DrawPrimitive(), d3d_device7_DrawPrimitiveStrided(), d3d_device7_DrawPrimitiveVB(), d3d_vertex_buffer7_GetVertexBufferDesc(), d3d_vertex_buffer7_ProcessVertices(), d3d_vertex_buffer_create(), and process_vertices_strided().
void get_fog_start_end | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
float * | start, | ||
float * | end | ||
) |
Definition at line 5179 of file utils.c.
Referenced by shader_glsl_load_fog_uniform(), and state_fogstartend().
|
inlinestatic |
Definition at line 1750 of file utils.c.
Referenced by apply_format_fixups(), get_format_internal(), init_format_filter_info(), and wined3d_get_format().
|
static |
Definition at line 1766 of file utils.c.
Referenced by init_format_base_info(), init_format_block_info(), init_format_texture_info(), init_format_vertex_info(), and init_typeless_formats().
void get_identity_matrix | ( | struct wined3d_matrix * | mat | ) |
Definition at line 4886 of file utils.c.
Referenced by compute_texture_matrix(), get_modelview_matrix(), and state_init_default().
void get_modelview_matrix | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
unsigned int | index, | ||
struct wined3d_matrix * | mat | ||
) |
Definition at line 4899 of file utils.c.
Referenced by shader_glsl_load_constants(), software_vertex_blending(), and transform_world().
void get_pointsize | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
float * | out_pointsize, | ||
float * | out_att | ||
) |
Definition at line 5147 of file utils.c.
Referenced by shader_glsl_pointsize_uniform(), and state_pscale().
void get_pointsize_minmax | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
float * | out_min, | ||
float * | out_max | ||
) |
Definition at line 5128 of file utils.c.
Referenced by shader_glsl_pointsize_uniform(), state_psizemin_arb(), state_psizemin_ext(), and state_psizemin_w().
void get_projection_matrix | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
struct wined3d_matrix * | mat | ||
) |
Definition at line 4908 of file utils.c.
Referenced by shader_glsl_load_constants(), and transform_projection().
void get_texture_matrix | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
unsigned int | tex, | ||
struct wined3d_matrix * | mat | ||
) |
Definition at line 5096 of file utils.c.
Referenced by shader_glsl_ffp_vertex_texmatrix_uniform(), and transform_texture().
|
static |
Definition at line 4175 of file utils.c.
Referenced by debug_d3dusage(), debug_d3dusagequery(), wined3d_debug_location(), and wined3d_debug_resource_access().
|
static |
Definition at line 1829 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 1933 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 3773 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 2532 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 3137 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 3615 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 2923 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 3527 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
|
static |
Definition at line 3557 of file utils.c.
Referenced by wined3d_adapter_init_format_info().
BOOL invert_matrix | ( | struct wined3d_matrix * | out, |
const struct wined3d_matrix * | m | ||
) |
Definition at line 5501 of file utils.c.
Referenced by get_normal_matrix(), shader_glsl_clip_plane_uniform(), and software_vertex_blending().
BOOL invert_matrix_3d | ( | struct wined3d_matrix * | out, |
const struct wined3d_matrix * | in | ||
) |
Definition at line 5431 of file utils.c.
Referenced by get_normal_matrix(), and software_vertex_blending().
BOOL is_invalid_op | ( | const struct wined3d_state * | state, |
int | stage, | ||
enum wined3d_texture_op | op, | ||
DWORD | arg1, | ||
DWORD | arg2, | ||
DWORD | arg3 | ||
) |
Definition at line 4865 of file utils.c.
Referenced by gen_ffp_frag_op(), set_tex_op(), and set_tex_op_nvrc().
Definition at line 2682 of file utils.c.
Referenced by query_view_class().
|
static |
Definition at line 1803 of file utils.c.
Referenced by init_format_base_info().
void multiply_matrix | ( | struct wined3d_matrix * | dst, |
const struct wined3d_matrix * | src1, | ||
const struct wined3d_matrix * | src2 | ||
) |
Definition at line 5401 of file utils.c.
enum wined3d_format_id pixelformat_for_depth | ( | DWORD | depth | ) |
Definition at line 5388 of file utils.c.
Referenced by wined3d_enum_adapter_modes(), wined3d_get_adapter_display_mode(), and wined3d_set_adapter_display_mode().
|
static |
Definition at line 2509 of file utils.c.
Referenced by query_internal_format().
|
static |
Definition at line 2813 of file utils.c.
Referenced by init_format_texture_info().
|
static |
Definition at line 2793 of file utils.c.
Referenced by query_internal_format().
void sampler_texdim | ( | struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
DWORD | state_id | ||
) |
Definition at line 6212 of file utils.c.
void texture_activate_dimensions | ( | const struct wined3d_texture * | texture, |
const struct wined3d_gl_info * | gl_info | ||
) |
Definition at line 6097 of file utils.c.
Referenced by nvrc_colorop(), sampler_texdim(), set_tex_op_atifs(), and tex_colorop().
void transpose_matrix | ( | struct wined3d_matrix * | out, |
const struct wined3d_matrix * | m | ||
) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | d3d | ) |
|
static |
Definition at line 3679 of file utils.c.
Referenced by init_format_depth_bias_scale().
BOOL wined3d_adapter_init_format_info | ( | struct wined3d_adapter * | adapter, |
struct wined3d_caps_gl_ctx * | ctx | ||
) |
Definition at line 3803 of file utils.c.
Referenced by wined3d_adapter_init(), and wined3d_adapter_init_nogl().
Definition at line 6526 of file utils.c.
Referenced by buffer_invalidate_bo_range(), context_free_fence(), context_free_occlusion_query(), context_free_pipeline_statistics_query(), context_free_so_statistics_query(), context_free_timestamp_query(), shader_record_shader_phase(), shader_reg_maps_add_tgsm(), and wined3d_register_window().
BOOL wined3d_caps_gl_ctx_test_viewport_subpixel_bits | ( | struct wined3d_caps_gl_ctx * | ctx | ) |
Definition at line 3632 of file utils.c.
Referenced by match_broken_viewport_subpixel_bits().
Definition at line 6458 of file utils.c.
Referenced by swapchain_gl_present().
Definition at line 6396 of file utils.c.
Referenced by raw_blitter_blit(), surface_blt_fbo(), surface_convert_format(), surface_cpu_blt(), surface_cpu_blt_colour_fill(), surface_depth_blt_fbo(), surface_load_drawable(), surface_load_location(), surface_load_renderbuffer(), surface_load_sysmem(), texture1d_load_location(), texture3d_load_location(), texture_resource_sub_resource_map(), wined3d_buffer_get_memory(), wined3d_buffer_invalidate_range(), wined3d_buffer_load_location(), wined3d_buffer_prepare_location(), wined3d_buffer_validate_location(), wined3d_cs_exec_add_dirty_texture_region(), wined3d_cs_exec_blt_sub_resource(), wined3d_texture_get_memory(), wined3d_texture_invalidate_location(), wined3d_texture_load(), wined3d_texture_load_location(), wined3d_texture_prepare_location(), wined3d_texture_update_map_binding(), and wined3d_texture_validate_location().
Definition at line 4200 of file utils.c.
Referenced by resource_init(), texture1d_init(), volumetexture_init(), wined3d_texture_init(), wined3d_texture_set_lod(), and wined3d_texture_unload().
Definition at line 6230 of file utils.c.
Referenced by arbfp_alloc(), atifs_alloc(), and glsl_fragment_pipe_alloc().
void wined3d_ffp_get_vs_settings | ( | const struct wined3d_context * | context, |
const struct wined3d_state * | state, | ||
struct wined3d_ffp_vs_settings * | settings | ||
) |
Definition at line 6238 of file utils.c.
Referenced by set_glsl_shader_program().
Definition at line 6387 of file utils.c.
Referenced by glsl_vertex_pipe_vp_alloc().
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 | ||
) |
Definition at line 3876 of file utils.c.
Referenced by surface_download_data(), surface_load_texture(), wined3d_calculate_format_pitch(), wined3d_format_calculate_size(), wined3d_surface_upload_data(), wined3d_texture_get_pitch(), and wined3d_texture_update_desc().
UINT wined3d_format_calculate_size | ( | const struct wined3d_format * | format, |
UINT | alignment, | ||
UINT | width, | ||
UINT | height, | ||
UINT | depth | ||
) |
Definition at line 3906 of file utils.c.
Referenced by wined3d_texture_init(), and wined3d_texture_update_desc().
DWORD wined3d_format_convert_from_float | ( | const struct wined3d_format * | format, |
const struct wined3d_color * | color | ||
) |
Definition at line 5227 of file utils.c.
Referenced by surface_cpu_blt_colour_fill().
const struct wined3d_color_key_conversion * wined3d_format_get_color_key_conversion | ( | const struct wined3d_texture * | texture, |
BOOL | need_alpha_ck | ||
) |
Definition at line 1046 of file utils.c.
Referenced by surface_load_texture(), texture2d_prepare_texture(), and wined3d_surface_blt().
void wined3d_format_get_float_color_key | ( | const struct wined3d_format * | format, |
const struct wined3d_color_key * | key, | ||
struct wined3d_color * | float_colors | ||
) |
Definition at line 5321 of file utils.c.
Referenced by arbfp_blit_set(), color_key_arbfp(), and shader_glsl_load_color_key_constant().
BOOL wined3d_format_is_depth_view | ( | enum wined3d_format_id | resource_format_id, |
enum wined3d_format_id | view_format_id | ||
) |
Definition at line 3863 of file utils.c.
Referenced by wined3d_shader_resource_view_cs_init().
BOOL wined3d_formats_are_srgb_variants | ( | enum wined3d_format_id | format1, |
enum wined3d_format_id | format2 | ||
) |
Definition at line 3922 of file utils.c.
Referenced by validate_resource_view().
Definition at line 6429 of file utils.c.
Referenced by shader_arb_append_imm_vec4(), shader_arb_generate_pshader(), shader_arb_generate_vshader(), shader_glsl_append_imm_vec4(), and shader_glsl_get_register_name().
const struct wined3d_format * wined3d_get_format | ( | const struct wined3d_gl_info * | gl_info, |
enum wined3d_format_id | format_id, | ||
unsigned int | resource_usage | ||
) |
Definition at line 3831 of file utils.c.
Referenced by append_decl_element(), buffer_init(), context_create(), surface_load_texture(), texture2d_prepare_texture(), texture_init(), validate_resource_view(), vertexdeclaration_init(), wined3d_calculate_format_pitch(), wined3d_check_depth_stencil_match(), wined3d_check_device_format(), wined3d_check_device_multisample_type(), wined3d_enum_adapter_modes(), wined3d_get_adapter_mode_count(), wined3d_set_adapter_display_mode(), wined3d_swapchain_apply_sample_count_override(), wined3d_swapchain_cs_init(), wined3d_texture_create(), wined3d_texture_init(), and wined3d_texture_update_desc().
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 | ||
) |
Definition at line 6498 of file utils.c.
Referenced by context_create(), and context_get_tex_unit_mapping().
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 | ||
) |
Definition at line 6480 of file utils.c.
Referenced by shader_generate_glsl_declarations(), shader_glsl_init_uniform_block_bindings(), and state_cb().
|
static |
Definition at line 1954 of file utils.c.
Referenced by check_fbo_compat(), create_and_bind_fbo_attachment(), init_format_fbo_compat_info(), and query_format_flag().
unsigned int wined3d_max_compat_varyings | ( | const struct wined3d_gl_info * | gl_info | ) |
Definition at line 5744 of file utils.c.
Referenced by find_ps_compile_args(), gen_ffp_frag_op(), glsl_fragment_pipe_vdecl(), glsl_fragment_pipe_vs(), glsl_vertex_pipe_vdecl(), shader_glsl_generate_ffp_vertex_shader(), shader_glsl_generate_vs3_rasterizer_input_setup(), and wined3d_ffp_get_vs_settings().
Definition at line 6444 of file utils.c.
Referenced by context_create(), context_destroy_gl_resources(), context_update_window(), swapchain_cleanup(), and wined3d_caps_gl_ctx_destroy().
|
static |
|
static |
|
static |
Definition at line 309 of file utils.c.
Referenced by init_format_base_info().
|
static |
|
static |
Definition at line 354 of file utils.c.
Referenced by init_format_block_info().
const struct { ... } format_index_remap[] |
Referenced by get_format_idx().
|
static |
Definition at line 1739 of file utils.c.
Referenced by init_format_texture_info(), and wined3d_formats_are_srgb_variants().
|
static |
Definition at line 1114 of file utils.c.
Referenced by init_format_texture_info().
|
static |
Definition at line 387 of file utils.c.
Referenced by init_format_vertex_info().
|
static |
Definition at line 81 of file utils.c.
Referenced by init_format_base_info().
Definition at line 40 of file utils.c.
Referenced by copy_format().
Definition at line 41 of file utils.c.
Referenced by _get_child_item(), _test_file_access(), _test_select_selidx(), FileChildWindow::activate_entry(), add_dispinterface_typeinfo(), add_enum_typeinfo(), add_func_desc(), add_interface_typeinfo(), add_module_typeinfo(), add_structure_typeinfo(), add_union_typeinfo(), addItem(), CRegFolderEnum::AddItemsFromKey(), AdvancedDlgProc(), af_face_globals_compute_style_coverage(), af_glyph_hints_reload(), af_shaper_get_elem(), alloc_device(), append_decl_element(), apply_format_fixups(), Arguments_idx_get(), Arguments_idx_put(), Array_slice(), assembly_get_external_files(), assembly_get_pubkey_token(), AtapiDmaInit(), AutomationObject_GetIDsOfNames(), AVIFILE_SaveIndex(), CEnumMergedFolder::Begin(), buffer_process_converted_attribute(), cache_bump_bitmap(), cache_evict_bitmap(), cache_get_bitmap(), cache_get_brush_data(), cache_put_bitmap(), cache_put_brush_data(), cache_rebuild_bmpcache_linked_list(), cache_save_state(), CBUpdateLBox(), CDevSettings_EnumAllModes(), cf2_arrstack_getPointer(), cf2_doFlex(), cf2_initGlobalRegionBuffer(), cf2_initLocalRegionBuffer(), cf2_interpT2CharString(), cf2_stack_getReal(), cf2_stack_roll(), cf2_stack_setReal(), cff_blend_build_vector(), cff_face_init(), cff_font_done(), cff_font_load(), cff_index_access_element(), cff_index_done(), cff_index_forget_element(), cff_index_get_name(), cff_index_get_pointers(), cff_index_init(), cff_index_load_offsets(), cff_index_read_offset(), cff_subfont_load(), CFn_WMCommand(), CFn_WMDrawItem(), CMenuToolbarBase::ChangeTrackedItem(), check_bits(), check_product_patches(), check_system_palette_entries(), check_vertical_metrics(), chmc_pmgi_add_entry(), chmc_pmgl_add_entry(), CHSourceDlgProc(), ClassInitializeDispatchTables(), cmp_sorttab_addr(), codeview_jump_to_type(), FileChildWindow::collapse_entry(), COMBO_GetText(), COMBO_GetTextA(), COMBO_GetTextW(), FileChildWindow::Command(), compare_FindGlyph(), compute_method_indexes(), context_apply_draw_state(), context_attach_surface_fbo(), context_invalidate_state(), context_preload_texture(), context_set_fbo_key_for_render_target(), context_set_tls_idx(), Control_RegisterRegistryApplets(), convert_fvf_to_declaration(), Pane::create_header(), CreateShortcut(), d3d9_device_GetRenderTarget(), d3d9_device_SetRenderTarget(), d3d_device7_GetClipPlane(), d3d_device7_GetClipPlane_FPUPreserve(), d3d_device7_GetClipPlane_FPUSetup(), d3d_device7_SetClipPlane(), d3d_device7_SetClipPlane_FPUPreserve(), d3d_device7_SetClipPlane_FPUSetup(), D3DXDeclaratorFromFVF(), dataformat_to_odf(), dbgstr_longlong(), dde_connect(), ddraw_allocate_handle(), delete_test_key(), delItem(), device_invalidate_state(), dir_sdi(), DispatchEx_GetMemberName(), DispatchEx_GetNextDispID(), DispatchEx_InvokeEx(), RdpClientUI::Display_DoGlyph(), DisplayParameter(), DisplayScreen(), ensure_useragent(), enum_components(), enum_compressors(), enum_patches(), enum_products(), CCharMapWindow::EnumDisplayFont(), EnumFontNames(), enumFontProc(), FileChildWindow::expand_entry(), expect(), Entry::extract_icon(), FaceNameList_Initialize(), fetch_machine_component(), fetch_machine_product(), fetch_user_component(), fetch_user_product(), FileChildWindow::FileChildWindow(), fill_pnpentity(), FilterMapper_EnumMatchingFilters(), find_color_in_colortbl(), find_font_in_fonttbl(), find_insert_index(), find_loop_control_values(), find_prop_name(), find_registry_key(), FontSizeList_SelectFontSize(), FormatBufferFat(), free_pp_entry(), FT_Get_PS_Font_Value(), ft_list_get_node_at(), ft_stroke_border_export(), FT_Trace_Get_Name(), FTC_Manager_Done(), g2s(), gen_proxy(), generic_d3dcolor(), generic_float16_2(), generic_float16_4(), generic_short2n(), generic_ushort2n(), get_argument_ref(), get_attr_dispid_by_idx(), get_attr_dispid_by_name(), get_bool_const(), get_builtin_accessible_obj(), get_comboexlist_selection(), get_cp(), get_format_info_idx(), get_glyph_indices(), ShellBrowser::get_image_idx(), get_item_idx(), get_loop_control_const(), get_priv_data(), get_temp_buffer(), get_token(), get_unused_desc(), GetCustomIconPath(), getItem(), getopt_long(), gl_local_filename_completion_proc(), global_idx(), glsl_is_color_reg_read(), guid2string(), HEADER_Refresh(), HLPFILE_ReadFont(), HLPFILE_Uncompress3(), HTMLDOMChildrenCollection_get_dispid(), HTMLElementCollection_get_dispid(), HTMLElementCollection_invoke(), HTMLElementCollection_item(), HTMLFiltersCollection_get_dispid(), HTMLSelectElement_get_dispid(), HTMLStyleSheet_put_cssText(), HTMLWindow_invoke(), icm_choose_compressor_dlgproc(), IDirectInputDevice2WImpl_GetObjectInfo(), idx_to_block(), idx_to_str(), II_step_two(), III_i_stereo(), in_plane(), index_to_rgba(), init_registered_oid_info(), InitializeDefaultIcons(), insert_column(), Pane::insert_entries(), insert_item(), TrayNotifyDlg::InsertItem(), instr_ps_1_0123_texld(), IOAPICSetupIrqs(), IRQPolarity(), IRQTrigger(), is_used_desc_packed(), isStateDirty(), CMenuToolbarBase::IsTrackedItem(), jsdisp_delete_idx(), jsdisp_get_idx(), jsdisp_propput_idx(), FileChildWindow::jump_to_int(), FindProgramDlg::LaunchSelected(), ListView_GetFocusedItem(), ListView_GetItemData(), main(), make_decode_tables(), MCI_FindCommand(), MCI_IsCommandTableValid(), ME_DrawParaDecoration(), ME_GetBorderPenWidth(), ME_GetParaBorderWidth(), ME_StreamOutRTFTableProps(), MIDI_player(), MIDIMAP_LoadSettingsScheme(), MMDRV_Free(), MMDRV_Get(), MSACM_FindFormatTagInCache(), MsiEnumComponentsExW(), MsiEnumPatchesExW(), MsiEnumPatchesW(), MsiEnumProductsExW(), MSRLE32_GetNearestPaletteIndex(), NdisMWriteLogData(), NetGroupGetUsers(), Pane::Notify(), TaskBar::Notify(), TrayNotifyDlg::Notify(), Number_toString(), ok_path(), OLEACC_DllGetClassObject(), OnHScroll(), OnInitDialog(), otv_SingleSubst_validate(), parent_wnd_proc(), parse_subrs(), ParseCommand(), ParseHelpTopic(), PATH_ExtTextOut(), path_GetNamespaceAt(), path_RemoveNamespaceAt(), path_SetNamespaceAt(), PCM_StreamOpen(), pdb_read_strings(), PerfDataGetProcessIndex(), pfr_glyph_load_simple(), pfr_log_font_load(), Pin2Irq(), DesktopShellView::PositionIcons(), pp_add_define(), pp_add_macro(), pp_del_define(), pplookup(), PRINTF_ATTR(), PrintStackBacktrace(), PropertyBag_Read(), PropertyBag_Write(), PROPSHEET_Back(), PROPSHEET_DialogProc(), PROPSHEET_Next(), PROPSHEET_SetCurSelId(), ps_dimension_add_t1stem(), ps_hints_t1stem3(), ps_mask_clear_bit(), ps_mask_set_bit(), ps_mask_test_bit(), ps_parser_load_field(), ps_table_add(), psaux_get_glyph_name(), psh_hint_table_activate_mask(), psh_hint_table_init(), psh_hint_table_record(), psh_hint_table_record_mask(), pstcache_enumerate(), put_unused_desc_chain(), NtObjDirectory::read_directory(), RegDirectory::read_directory(), CConfigParser::ReadSection(), TaskBar::Refresh(), CControlPanelEnum::RegisterRegistryCPanelApps(), Remove(), remove_attribute(), remove_style(), remove_subset_prefix(), SSOThread::Run(), SampleGrabber_IMemInputPin_ReceiveMultiple(), FileChildWindow::scan_entry(), ScriptShapeOpenType(), set_clipboard_formats(), TrayNotifyDlg::SetIconMode(), setItem(), setItemUnicodeNotify(), SetupDiGetClassImageListExW(), SetupOpenAppendInfFileW(), sfnt_table_info(), shader_arb_get_register_name(), shader_arb_load_np2fixup_constants(), shader_generate_arb_declarations(), shader_get_registers_used(), shader_glsl_ffp_vertex_lighting(), shader_glsl_ffp_vertex_lighting_footer(), shader_glsl_get_register_name(), shader_glsl_get_resource_info(), shader_glsl_load_constants(), shader_glsl_load_constants_i(), shader_glsl_load_constantsB(), shader_glsl_load_np2fixup_constants(), shader_hw_sample(), SHELL_execute(), SHEnumerateUnreadMailAccountsW(), show_image(), ShutdownOnInit(), ShutdownOnOk(), ListSort::sort(), source_get(), sparse_array_add(), sparse_array_find(), sparse_array_lookup(), SPY_Bsearch_Msg(), SPY_Bsearch_Notify(), stabs_add_include(), stabs_pts_read_aggregate(), stabs_pts_read_enum(), stabs_pts_read_type_def(), START_TEST(), STATUSBAR_SetTextT(), str_array_get_ref(), stream_out_para_num(), String_charCodeAt(), String_idx_get(), String_replace(), Desktops::SwitchToDesktop(), T1_Get_Kerning(), T1_Open_Face(), t1_ps_get_font_value(), T42_Open_Face(), TAB_RemoveImage(), td_get_offs(), test_bitmap_data(), test_comboex_WM_LBUTTONDOWN(), test_halftone_palette(), test_ImmMessages(), test_Installer_Products(), test_negative_width(), test_RtlFindCharInUnicodeString(), test_selection(), test_SetDIBits(), test_SetDIBitsToDevice(), test_ShowWindow(), test_Sign_Media(), test_specific_encoder_properties(), test_stylesheets(), test_WM_LBUTTONDOWN(), texture1d_init(), texture_init(), TIME_MMSysTimeCallback(), TLB_ReadTypeLib(), ListSort::toggle_sort(), TOOLBAR_Restore(), TransformView_Create(), TREEVIEW_ProcessLetterKeys(), triangulation_get_next_point(), TT_Get_HMetrics(), TT_Get_VMetrics(), UniataInitIoRes(), update_heap_entry(), update_margin_edits(), variant_from_registry_value(), vdecl_convert_fvf(), vers_write(), VfatCreateFile(), virtqueue_add_buf_split(), virtqueue_detach_unused_buf_split(), virtqueue_get_buf_split(), Volume_FindMixerControl(), walk_constant_heap(), walk_constant_heap_clamped(), widOpenHelper(), wine_compose(), wined3d_cs_emit_set_light_enable(), wined3d_device_copy_resource(), wined3d_device_get_constant_buffer(), wined3d_device_get_cs_cb(), wined3d_device_get_cs_resource_view(), wined3d_device_get_cs_sampler(), wined3d_device_get_cs_uav(), wined3d_device_get_ds_cb(), wined3d_device_get_ds_resource_view(), wined3d_device_get_ds_sampler(), wined3d_device_get_gs_cb(), wined3d_device_get_gs_resource_view(), wined3d_device_get_gs_sampler(), wined3d_device_get_hs_cb(), wined3d_device_get_hs_resource_view(), wined3d_device_get_hs_sampler(), wined3d_device_get_pipeline_unordered_access_view(), wined3d_device_get_ps_cb(), wined3d_device_get_ps_resource_view(), wined3d_device_get_ps_sampler(), wined3d_device_get_sampler(), wined3d_device_get_shader_resource_view(), wined3d_device_get_stream_output(), wined3d_device_get_unordered_access_view(), wined3d_device_get_vs_cb(), wined3d_device_get_vs_resource_view(), wined3d_device_get_vs_sampler(), wined3d_device_set_constant_buffer(), wined3d_device_set_cs_cb(), wined3d_device_set_cs_resource_view(), wined3d_device_set_cs_sampler(), wined3d_device_set_cs_uav(), wined3d_device_set_ds_cb(), wined3d_device_set_ds_resource_view(), wined3d_device_set_ds_sampler(), wined3d_device_set_gs_cb(), wined3d_device_set_gs_resource_view(), wined3d_device_set_gs_sampler(), wined3d_device_set_hs_cb(), wined3d_device_set_hs_resource_view(), wined3d_device_set_hs_sampler(), wined3d_device_set_pipeline_unordered_access_view(), wined3d_device_set_ps_cb(), wined3d_device_set_ps_resource_view(), wined3d_device_set_ps_sampler(), wined3d_device_set_sampler(), wined3d_device_set_shader_resource_view(), wined3d_device_set_stream_output(), wined3d_device_set_unordered_access_view(), wined3d_device_set_vs_cb(), wined3d_device_set_vs_resource_view(), wined3d_device_set_vs_sampler(), wined3d_extract_bits(), wined3d_ftoa(), wined3d_get_format(), wined3d_insert_bits(), wined3d_state_get_light(), wined3d_stateblock_capture(), wined3d_stream_info_from_declaration(), wined3d_texture_init(), FileChildWindow::WndProc(), QuickLaunchBar::WndProc(), wodOpenHelper(), write_proxy(), write_str_file(), xfwrite(), xmlMemDisplay(), xmlMemDisplayLast(), ZSTD_insertAndFindFirstIndex_internal(), ZSTD_insertAndFindFirstIndexHash3(), ZSTD_updateDUBT(), and ZSTD_updateTree_internal().
|
static |
The last entry for a given typeless format defines its internal format.
u - WINED3D_CHANNEL_TYPE_UNORM i - WINED3D_CHANNEL_TYPE_SNORM U - WINED3D_CHANNEL_TYPE_UINT I - WINED3D_CHANNEL_TYPE_SINT F - WINED3D_CHANNEL_TYPE_FLOAT D - WINED3D_CHANNEL_TYPE_DEPTH S - WINED3D_CHANNEL_TYPE_STENCIL X - WINED3D_CHANNEL_TYPE_UNUSED
Definition at line 211 of file utils.c.
Referenced by init_format_base_info(), and init_typeless_formats().
|
static |
Definition at line 293 of file utils.c.
Referenced by init_format_base_info(), init_typeless_formats(), wined3d_format_is_depth_view(), and wined3d_get_format().