mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-05 06:39:52 +00:00
Merge pull request #2034 from vlj/rsx-refactor
rsx: Returns u32 instead of size_t for get_index_count/type_size
This commit is contained in:
commit
b61ac15c47
@ -262,7 +262,7 @@ bool is_primitive_native(rsx::primitive_type draw_mode)
|
|||||||
* see http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/polygon-triangulation-r3334
|
* see http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/polygon-triangulation-r3334
|
||||||
*/
|
*/
|
||||||
|
|
||||||
size_t get_index_count(rsx::primitive_type draw_mode, unsigned initial_index_count)
|
u32 get_index_count(rsx::primitive_type draw_mode, u32 initial_index_count)
|
||||||
{
|
{
|
||||||
// Index count
|
// Index count
|
||||||
if (is_primitive_native(draw_mode))
|
if (is_primitive_native(draw_mode))
|
||||||
@ -284,7 +284,7 @@ size_t get_index_count(rsx::primitive_type draw_mode, unsigned initial_index_cou
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t get_index_type_size(rsx::index_array_type type)
|
u32 get_index_type_size(rsx::index_array_type type)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
@ -20,12 +20,12 @@ bool is_primitive_native(rsx::primitive_type m_draw_mode);
|
|||||||
/**
|
/**
|
||||||
* Returns a fixed index count for emulated primitive, otherwise returns initial_index_count
|
* Returns a fixed index count for emulated primitive, otherwise returns initial_index_count
|
||||||
*/
|
*/
|
||||||
size_t get_index_count(rsx::primitive_type m_draw_mode, unsigned initial_index_count);
|
u32 get_index_count(rsx::primitive_type m_draw_mode, u32 initial_index_count);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns index type size in byte
|
* Returns index type size in byte
|
||||||
*/
|
*/
|
||||||
size_t get_index_type_size(rsx::index_array_type type);
|
u32 get_index_type_size(rsx::index_array_type type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write count indexes using (first, first + count) ranges.
|
* Write count indexes using (first, first + count) ranges.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user