ReactOS 0.4.16-dev-122-g325d74c
|
Go to the source code of this file.
Macros | |
#define | WINED3D_BUFFER_HASDESC 0x01 /* A vertex description has been found. */ |
#define | WINED3D_BUFFER_USE_BO 0x02 /* Use a buffer object for this buffer. */ |
#define | WINED3D_BUFFER_PIN_SYSMEM 0x04 /* Keep a system memory copy for this buffer. */ |
#define | WINED3D_BUFFER_DISCARD 0x08 /* A DISCARD lock has occurred since the last preload. */ |
#define | WINED3D_BUFFER_APPLESYNC 0x10 /* Using sync as in GL_APPLE_flush_buffer_range. */ |
#define | VB_MAXDECLCHANGES 100 /* After that number of decl changes we stop converting */ |
#define | VB_RESETDECLCHANGE 1000 /* Reset the decl changecount after that number of draws */ |
#define | VB_MAXFULLCONVERSIONS 5 /* Number of full conversions before we stop converting */ |
#define | VB_RESETFULLCONVS 20 /* Reset full conversion counts after that number of draws */ |
#define | WINED3D_BUFFER_FIXUP_D3DCOLOR 0x01 |
#define | WINED3D_BUFFER_FIXUP_XYZRHW 0x02 |
Variables | |
static const struct wined3d_resource_ops | buffer_resource_ops |
#define WINED3D_BUFFER_HASDESC 0x01 /* A vertex description has been found. */ |
|
static |
Definition at line 136 of file buffer.c.
Referenced by buffer_create_buffer_object(), wined3d_buffer_load_location(), wined3d_buffer_map(), wined3d_buffer_unmap(), and wined3d_buffer_upload_ranges().
|
static |
Definition at line 330 of file buffer.c.
Referenced by buffer_find_decl().
|
inlinestatic |
Definition at line 85 of file buffer.c.
Referenced by buffer_create_buffer_object(), buffer_unload(), wined3d_buffer_unmap(), and wined3d_buffer_validate_location().
|
static |
Definition at line 552 of file buffer.c.
Referenced by wined3d_buffer_load_location().
|
static |
Definition at line 197 of file buffer.c.
Referenced by wined3d_buffer_prepare_location().
|
static |
Definition at line 142 of file buffer.c.
Referenced by buffer_create_buffer_object(), buffer_unload(), and wined3d_buffer_destroy_object().
|
static |
Definition at line 368 of file buffer.c.
Referenced by wined3d_buffer_load().
|
static |
Definition at line 1346 of file buffer.c.
|
static |
Definition at line 56 of file buffer.c.
Referenced by buffer_create_buffer_object(), wined3d_buffer_invalidate_range(), wined3d_buffer_load(), and wined3d_buffer_map().
|
static |
Definition at line 90 of file buffer.c.
Referenced by wined3d_buffer_load().
|
static |
|
static |
Definition at line 881 of file buffer.c.
Referenced by wined3d_buffer_copy(), and wined3d_buffer_load().
|
static |
Definition at line 272 of file buffer.c.
Referenced by buffer_check_attribute().
|
static |
Definition at line 1243 of file buffer.c.
|
static |
Definition at line 1238 of file buffer.c.
|
static |
Definition at line 1248 of file buffer.c.
|
static |
Definition at line 1257 of file buffer.c.
|
static |
|
static |
Definition at line 1301 of file buffer.c.
|
static |
Definition at line 815 of file buffer.c.
Referenced by wined3d_buffer_map().
|
static |
Definition at line 1324 of file buffer.c.
Referenced by buffer_init().
|
static |
Definition at line 738 of file buffer.c.
Referenced by buffer_init(), and wined3d_buffer_drop_bo().
Definition at line 489 of file buffer.c.
Referenced by buffer_conversion_upload().
|
inlinestatic |
Definition at line 510 of file buffer.c.
Referenced by buffer_conversion_upload().
WINE_DEFAULT_DEBUG_CHANNEL | ( | d3d | ) |
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 | ||
) |
Definition at line 1195 of file buffer.c.
Referenced by wined3d_cs_exec_blt_sub_resource().
HRESULT CDECL wined3d_buffer_create | ( | struct wined3d_device * | device, |
const struct wined3d_buffer_desc * | desc, | ||
const struct wined3d_sub_resource_data * | data, | ||
void * | parent, | ||
const struct wined3d_parent_ops * | parent_ops, | ||
struct wined3d_buffer ** | buffer | ||
) |
Definition at line 1436 of file buffer.c.
Referenced by d3d8_device_prepare_index_buffer(), d3d8_device_prepare_vertex_buffer(), d3d9_device_prepare_index_buffer(), d3d9_device_prepare_vertex_buffer(), d3d_device_prepare_index_buffer(), d3d_device_prepare_vertex_buffer(), d3d_execute_buffer_SetExecuteData(), d3d_vertex_buffer_create_wined3d_buffer(), indexbuffer_init(), and vertexbuffer_init().
ULONG CDECL wined3d_buffer_decref | ( | struct wined3d_buffer * | buffer | ) |
Definition at line 791 of file buffer.c.
Referenced by buffer_resource_decref(), d3d8_device_prepare_index_buffer(), d3d8_device_prepare_vertex_buffer(), d3d8_device_Release(), d3d8_device_Reset(), d3d8_indexbuffer_Release(), d3d8_vertexbuffer_Release(), d3d9_device_prepare_index_buffer(), d3d9_device_prepare_vertex_buffer(), d3d9_device_Release(), d3d9_device_reset(), d3d9_indexbuffer_Release(), d3d9_vertexbuffer_Release(), d3d_device_inner_Release(), d3d_device_prepare_index_buffer(), d3d_device_prepare_vertex_buffer(), d3d_execute_buffer_Release(), d3d_execute_buffer_SetExecuteData(), d3d_vertex_buffer7_Lock(), d3d_vertex_buffer7_Release(), d3d_vertex_buffer_create(), state_unbind_resources(), wined3d_device_set_constant_buffer(), wined3d_device_set_index_buffer(), wined3d_device_set_stream_output(), wined3d_device_set_stream_source(), and wined3d_stateblock_capture().
Definition at line 773 of file buffer.c.
Referenced by wined3d_buffer_decref().
|
static |
Definition at line 767 of file buffer.c.
Referenced by wined3d_buffer_load(), and wined3d_buffer_map().
|
static |
Definition at line 43 of file buffer.c.
Referenced by wined3d_buffer_load_location(), and wined3d_buffer_map().
DWORD wined3d_buffer_get_memory | ( | struct wined3d_buffer * | buffer, |
struct wined3d_bo_address * | data, | ||
DWORD | locations | ||
) |
Definition at line 713 of file buffer.c.
Referenced by context_update_stream_info(), wined3d_buffer_copy(), and wined3d_unordered_access_view_copy_counter().
void *CDECL wined3d_buffer_get_parent | ( | const struct wined3d_buffer * | buffer | ) |
Definition at line 807 of file buffer.c.
Referenced by d3d8_device_GetIndices(), d3d8_device_GetStreamSource(), d3d9_device_GetIndices(), d3d9_device_GetStreamSource(), and wined3d_rendertarget_view_get_sub_resource_parent().
struct wined3d_resource *CDECL wined3d_buffer_get_resource | ( | struct wined3d_buffer * | buffer | ) |
Definition at line 995 of file buffer.c.
Referenced by d3d8_device_DrawIndexedPrimitiveUP(), d3d8_device_DrawPrimitiveUP(), d3d8_indexbuffer_GetDesc(), d3d8_indexbuffer_GetPriority(), d3d8_indexbuffer_Lock(), d3d8_indexbuffer_PreLoad(), d3d8_indexbuffer_SetPriority(), d3d8_indexbuffer_Unlock(), d3d8_vertexbuffer_GetDesc(), d3d8_vertexbuffer_GetPriority(), d3d8_vertexbuffer_Lock(), d3d8_vertexbuffer_PreLoad(), d3d8_vertexbuffer_SetPriority(), d3d8_vertexbuffer_Unlock(), d3d9_device_DrawIndexedPrimitiveUP(), d3d9_device_DrawPrimitiveUP(), d3d9_indexbuffer_GetDesc(), d3d9_indexbuffer_GetPriority(), d3d9_indexbuffer_Lock(), d3d9_indexbuffer_PreLoad(), d3d9_indexbuffer_SetPriority(), d3d9_indexbuffer_Unlock(), d3d9_vertexbuffer_GetDesc(), d3d9_vertexbuffer_GetPriority(), d3d9_vertexbuffer_Lock(), d3d9_vertexbuffer_PreLoad(), d3d9_vertexbuffer_SetPriority(), d3d9_vertexbuffer_Unlock(), d3d_device7_DrawIndexedPrimitive(), d3d_device7_DrawIndexedPrimitiveStrided(), d3d_device7_DrawIndexedPrimitiveVB(), d3d_device7_DrawPrimitive(), d3d_device7_DrawPrimitiveStrided(), d3d_execute_buffer_SetExecuteData(), d3d_vertex_buffer7_GetVertexBufferDesc(), d3d_vertex_buffer7_Lock(), and d3d_vertex_buffer7_Unlock().
ULONG CDECL wined3d_buffer_incref | ( | struct wined3d_buffer * | buffer | ) |
Definition at line 525 of file buffer.c.
Referenced by buffer_resource_incref(), d3d8_indexbuffer_AddRef(), d3d8_vertexbuffer_AddRef(), d3d9_indexbuffer_AddRef(), d3d9_vertexbuffer_AddRef(), wined3d_device_set_constant_buffer(), wined3d_device_set_index_buffer(), wined3d_device_set_stream_output(), wined3d_device_set_stream_source(), and wined3d_stateblock_capture().
void wined3d_buffer_invalidate_location | ( | struct wined3d_buffer * | buffer, |
DWORD | location | ||
) |
Definition at line 130 of file buffer.c.
Referenced by buffer_unload(), context_load_stream_output_buffers(), wined3d_buffer_evict_sysmem(), wined3d_buffer_load_location(), wined3d_cs_exec_update_sub_resource(), wined3d_unordered_access_view_copy_counter(), and wined3d_view_invalidate_location().
|
static |
Definition at line 113 of file buffer.c.
Referenced by wined3d_buffer_copy(), wined3d_buffer_invalidate_location(), and wined3d_buffer_map().
void wined3d_buffer_load | ( | struct wined3d_buffer * | buffer, |
struct wined3d_context * | context, | ||
const struct wined3d_state * | state | ||
) |
Definition at line 887 of file buffer.c.
Referenced by buffer_resource_preload(), context_apply_draw_state(), context_load_shader_resources(), context_load_stream_output_buffers(), context_update_stream_info(), dispatch_compute(), and draw_primitive().
BOOL wined3d_buffer_load_location | ( | struct wined3d_buffer * | buffer, |
struct wined3d_context * | context, | ||
DWORD | location | ||
) |
Definition at line 641 of file buffer.c.
Referenced by buffer_conversion_upload(), buffer_unload(), context_load_unordered_access_resources(), create_buffer_texture(), wined3d_buffer_load(), wined3d_buffer_load_location(), wined3d_buffer_load_sysmem(), wined3d_buffer_map(), wined3d_cs_exec_update_sub_resource(), wined3d_rendertarget_view_load_location(), and wined3d_unordered_access_view_clear_uint().
BYTE * wined3d_buffer_load_sysmem | ( | struct wined3d_buffer * | buffer, |
struct wined3d_context * | context | ||
) |
Definition at line 706 of file buffer.c.
Referenced by context_apply_draw_state(), context_update_stream_info(), draw_primitive_arrays(), draw_primitive_immediate_mode(), load_numbered_arrays(), and remove_vbos().
|
static |
Definition at line 1002 of file buffer.c.
Referenced by buffer_resource_sub_resource_map().
|
static |
Definition at line 608 of file buffer.c.
Referenced by wined3d_buffer_load(), and wined3d_buffer_load_location().
|
static |
Definition at line 1132 of file buffer.c.
Referenced by buffer_resource_sub_resource_unmap().
void wined3d_buffer_upload_data | ( | struct wined3d_buffer * | buffer, |
struct wined3d_context * | context, | ||
const struct wined3d_box * | box, | ||
const void * | data | ||
) |
Definition at line 1219 of file buffer.c.
Referenced by wined3d_cs_exec_update_sub_resource().
|
static |
Definition at line 535 of file buffer.c.
Referenced by buffer_conversion_upload(), wined3d_buffer_load_location(), and wined3d_buffer_upload_data().
|
static |
Definition at line 101 of file buffer.c.
Referenced by wined3d_buffer_load_location(), and wined3d_buffer_map().
|
static |
Definition at line 1313 of file buffer.c.
Referenced by buffer_init().