winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 2023
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
865 discussions
Start a n
N
ew thread
Biswapriyo Nath : include: Add ID2D1DeviceContext4 in d2d1_3.idl.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: 788a61222c3e5ce420b756df30596078919e77aa URL:
https://gitlab.winehq.org/wine/wine/-/commit/788a61222c3e5ce420b756df305960…
Author: Biswapriyo Nath <nathbappai(a)gmail.com> Date: Fri Jul 14 21:12:22 2023 +0530 include: Add ID2D1DeviceContext4 in d2d1_3.idl. --- include/d2d1_3.idl | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/include/d2d1_3.idl b/include/d2d1_3.idl index a746a17c7c6..9ca42e661e1 100644 --- a/include/d2d1_3.idl +++ b/include/d2d1_3.idl @@ -19,6 +19,8 @@ import "d2d1_2.idl"; import "d2d1effects_2.idl"; +interface IDWriteFontFace; + typedef enum D2D1_INK_NIB_SHAPE { D2D1_INK_NIB_SHAPE_ROUND = 0x0, @@ -76,6 +78,13 @@ typedef enum D2D1_SPRITE_OPTIONS D2D1_SPRITE_OPTIONS_FORCE_DWORD = 0xffffffff } D2D1_SPRITE_OPTIONS; +typedef enum D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION +{ + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DEFAULT = 0x0, + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DISABLE = 0x1, + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_FORCE_DWORD = 0xffffffff +} D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION; + typedef struct D2D1_INK_POINT { float x; @@ -424,6 +433,78 @@ interface ID2D1DeviceContext3 : ID2D1DeviceContext2 ); } +[ + object, + uuid(8c427831-3d90-4476-b647-c4fae349e4db), + local, +] +interface ID2D1DeviceContext4 : ID2D1DeviceContext3 +{ + HRESULT CreateSvgGlyphStyle( + [out] ID2D1SvgGlyphStyle **svg_glyph_style + ); + void DrawText( + [in] const WCHAR *string, + [in] UINT32 string_length, + [in] IDWriteTextFormat *text_format, + [in] const D2D1_RECT_F *layout_rect, + [in, optional] ID2D1Brush *default_fill_brush, + [in, optional] ID2D1SvgGlyphStyle *svg_glyph_style, + [in, optional] UINT32 color_palette_index, + [in] D2D1_DRAW_TEXT_OPTIONS options, + [in] DWRITE_MEASURING_MODE measuring_mode + ); + void DrawTextLayout( + [in] D2D1_POINT_2F origin, + [in] IDWriteTextLayout *text_layout, + [in, optional] ID2D1Brush *default_fill_brush, + [in, optional] ID2D1SvgGlyphStyle *svg_glyph_style, + [in, optional] UINT32 color_palette_index, + [in] D2D1_DRAW_TEXT_OPTIONS options + ); + void DrawColorBitmapGlyphRun( + [in] DWRITE_GLYPH_IMAGE_FORMATS glyph_image_format, + [in] D2D1_POINT_2F baseline_origin, + [in] const DWRITE_GLYPH_RUN *glyph_run, + [in] DWRITE_MEASURING_MODE measuring_mode, + [in] D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION bitmap_snap_option + ); + void DrawSvgGlyphRun( + [in] D2D1_POINT_2F baseline_origin, + [in] const DWRITE_GLYPH_RUN *glyph_run, + [in, optional] ID2D1Brush *default_fill_brush, + [in, optional] ID2D1SvgGlyphStyle *svg_glyph_style, + [in, optional]UINT32 color_palette_index, + [in] DWRITE_MEASURING_MODE measuring_mode + ); + HRESULT GetColorBitmapGlyphImage( + [in] DWRITE_GLYPH_IMAGE_FORMATS glyph_image_format, + [in] D2D1_POINT_2F glyph_origin, + [in] IDWriteFontFace *font_face, + [in] FLOAT font_em_size, + [in] UINT16 glyph_index, + [in] BOOL is_sideways, + [in, optional] const D2D1_MATRIX_3X2_F *world_transform, + [in] FLOAT dpi_x, + [in] FLOAT dpi_y, + [out] D2D1_MATRIX_3X2_F *glyph_transform, + [out] ID2D1Image **glyph_image + ); + HRESULT GetSvgGlyphImage( + [in] D2D1_POINT_2F glyph_origin, + [in] IDWriteFontFace *font_face, + [in] FLOAT font_em_size, + [in] UINT16 glyph_index, + [in] BOOL is_sideways, + [in, optional] const D2D1_MATRIX_3X2_F *world_transform, + [in, optional] ID2D1Brush *default_fill_brush, + [in, optional] ID2D1SvgGlyphStyle *svg_glyph_style, + [in] UINT32 color_palette_index, + [out] D2D1_MATRIX_3X2_F *glyph_transform, + [out] ID2D1CommandList **glyph_image + ); +} + [ object, uuid(a44472e1-8dfb-4e60-8492-6e2861c9ca8b),
1
0
0
0
Biswapriyo Nath : include: Add ID2D1DeviceContext3 in d2d1_3.idl.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: a66504de8f53c23792502503a945d7b40a5ec2bd URL:
https://gitlab.winehq.org/wine/wine/-/commit/a66504de8f53c23792502503a945d7…
Author: Biswapriyo Nath <nathbappai(a)gmail.com> Date: Fri Jul 14 21:12:21 2023 +0530 include: Add ID2D1DeviceContext3 in d2d1_3.idl. --- include/d2d1_3.idl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/d2d1_3.idl b/include/d2d1_3.idl index 830c196a484..a746a17c7c6 100644 --- a/include/d2d1_3.idl +++ b/include/d2d1_3.idl @@ -404,6 +404,26 @@ interface ID2D1DeviceContext2 : ID2D1DeviceContext1 ); } +[ + object, + uuid(235a7496-8351-414c-bcd4-6672ab2d8e00), + local, +] +interface ID2D1DeviceContext3 : ID2D1DeviceContext2 +{ + HRESULT CreateSpriteBatch( + [out] ID2D1SpriteBatch **sprite_batch + ); + void DrawSpriteBatch( + [in] ID2D1SpriteBatch *sprite_batch, + [in] UINT32 start_index, + [in] UINT32 sprite_count, + [in] ID2D1Bitmap *bitmap, + [in] D2D1_BITMAP_INTERPOLATION_MODE interpolation_mode, + [in] D2D1_SPRITE_OPTIONS sprite_options + ); +} + [ object, uuid(a44472e1-8dfb-4e60-8492-6e2861c9ca8b),
1
0
0
0
Biswapriyo Nath : include: Add ID2D1SvgGlyphStyle in d2d1_3.idl.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: de1d097d290518e008c2ef01f104dcf9d12b0498 URL:
https://gitlab.winehq.org/wine/wine/-/commit/de1d097d290518e008c2ef01f104dc…
Author: Biswapriyo Nath <nathbappai(a)gmail.com> Date: Fri Jul 14 21:12:20 2023 +0530 include: Add ID2D1SvgGlyphStyle in d2d1_3.idl. --- include/d2d1_3.idl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/include/d2d1_3.idl b/include/d2d1_3.idl index c88226b4136..830c196a484 100644 --- a/include/d2d1_3.idl +++ b/include/d2d1_3.idl @@ -309,6 +309,36 @@ interface ID2D1SpriteBatch : ID2D1Resource void Clear(void); } +[ + object, + uuid(af671749-d241-4db8-8e41-dcc2e5c1a438), + local, +] +interface ID2D1SvgGlyphStyle : ID2D1Resource +{ + HRESULT SetFill( + [in, optional] ID2D1Brush *brush + ); + void GetFill( + [out] ID2D1Brush **brush + ); + HRESULT SetStroke( + [in, optional] ID2D1Brush *brush, + [in] FLOAT stroke_width, + [in, optional] const FLOAT *dashes, + [in, optional] UINT32 dashes_count, + [in] FLOAT dash_offset + ); + UINT32 GetStrokeDashesCount(void); + void GetStroke( + [out, optional] ID2D1Brush **brush, + [out, optional] FLOAT *stroke_width, + [out, optional] FLOAT *dashes, + [in, optional] UINT32 dashes_count, + [out, optional] FLOAT *dash_offset + ); +} + [ object, uuid(394ea6a3-0c34-4321-950b-6ca20f0be6c7),
1
0
0
0
Biswapriyo Nath : include: Add ID2D1SpriteBatch in d2d1_3.idl.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: 70eb577f3e400b2ffad73a85b9ded2a4908db48b URL:
https://gitlab.winehq.org/wine/wine/-/commit/70eb577f3e400b2ffad73a85b9ded2…
Author: Biswapriyo Nath <nathbappai(a)gmail.com> Date: Fri Jul 14 21:12:19 2023 +0530 include: Add ID2D1SpriteBatch in d2d1_3.idl. --- include/d2d1_3.idl | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/include/d2d1_3.idl b/include/d2d1_3.idl index 29bcc8df56d..c88226b4136 100644 --- a/include/d2d1_3.idl +++ b/include/d2d1_3.idl @@ -19,8 +19,6 @@ import "d2d1_2.idl"; import "d2d1effects_2.idl"; -interface ID2D1SpriteBatch; - typedef enum D2D1_INK_NIB_SHAPE { D2D1_INK_NIB_SHAPE_ROUND = 0x0, @@ -269,6 +267,48 @@ interface ID2D1LookupTable3D : ID2D1Resource { } +[ + object, + uuid(4dc583bf-3a10-438a-8722-e9765224f1f1), + local, +] +interface ID2D1SpriteBatch : ID2D1Resource +{ + HRESULT AddSprites( + [in] UINT32 sprite_count, + [in] const D2D1_RECT_F *destination_rectangles, + [in] const D2D1_RECT_U *source_rectangles, + [in] const D2D1_COLOR_F *colors, + [in] const D2D1_MATRIX_3X2_F *transforms, + [in] UINT32 destination_rectangles_stride, + [in] UINT32 source_rectangles_stride, + [in] UINT32 colors_stride, + [in] UINT32 transforms_stride + ); + HRESULT SetSprites( + [in] UINT32 start_index, + [in] UINT32 sprite_count, + [in] const D2D1_RECT_F *destination_rectangles, + [in] const D2D1_RECT_U *source_rectangles, + [in] const D2D1_COLOR_F *colors, + [in] const D2D1_MATRIX_3X2_F *transforms, + [in] UINT32 destination_rectangles_stride, + [in] UINT32 source_rectangles_stride, + [in] UINT32 colors_stride, + [in] UINT32 transforms_stride + ); + HRESULT GetSprites( + [in] UINT32 start_index, + [in] UINT32 sprite_count, + [out, optional] D2D1_RECT_F *destination_rectangles, + [out, optional] D2D1_RECT_U *source_rectangles, + [out, optional] D2D1_COLOR_F *colors, + [out, optional] D2D1_MATRIX_3X2_F *transforms + ); + UINT32 GetSpriteCount(void); + void Clear(void); +} + [ object, uuid(394ea6a3-0c34-4321-950b-6ca20f0be6c7),
1
0
0
0
Zebediah Figura : wined3d: Move the wined3d_vk.h include to individual files.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: 166186ba4636b44e73f0bc2a5f059481d5c6f8a1 URL:
https://gitlab.winehq.org/wine/wine/-/commit/166186ba4636b44e73f0bc2a5f0594…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Dec 22 15:46:40 2022 -0600 wined3d: Move the wined3d_vk.h include to individual files. --- dlls/wined3d/adapter_vk.c | 1 + dlls/wined3d/buffer.c | 1 + dlls/wined3d/context_vk.c | 1 + dlls/wined3d/device.c | 1 + dlls/wined3d/query.c | 1 + dlls/wined3d/resource.c | 1 + dlls/wined3d/sampler.c | 1 + dlls/wined3d/shader_spirv.c | 1 + dlls/wined3d/swapchain.c | 1 + dlls/wined3d/texture.c | 1 + dlls/wined3d/utils.c | 1 + dlls/wined3d/view.c | 1 + dlls/wined3d/wined3d_main.c | 2 ++ dlls/wined3d/wined3d_private.h | 2 -- dlls/wined3d/wined3d_vk.h | 1 + 15 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/adapter_vk.c b/dlls/wined3d/adapter_vk.c index 5b6042659aa..3dcf2230643 100644 --- a/dlls/wined3d/adapter_vk.c +++ b/dlls/wined3d/adapter_vk.c @@ -17,6 +17,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index fa24f006872..a3881438976 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -23,6 +23,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/context_vk.c b/dlls/wined3d/context_vk.c index 097f8c7032c..efc18e2ff69 100644 --- a/dlls/wined3d/context_vk.c +++ b/dlls/wined3d/context_vk.c @@ -23,6 +23,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6c9d7f4368c..deb6d3dc210 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -25,6 +25,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); WINE_DECLARE_DEBUG_CHANNEL(d3d_perf); diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index be739704922..8e5f60cc7fc 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -19,6 +19,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c index 471d2f32f03..6d4dbb75ef6 100644 --- a/dlls/wined3d/resource.c +++ b/dlls/wined3d/resource.c @@ -22,6 +22,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); WINE_DECLARE_DEBUG_CHANNEL(d3d_perf); diff --git a/dlls/wined3d/sampler.c b/dlls/wined3d/sampler.c index d6e19fc521c..e6c226af1af 100644 --- a/dlls/wined3d/sampler.c +++ b/dlls/wined3d/sampler.c @@ -18,6 +18,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/shader_spirv.c b/dlls/wined3d/shader_spirv.c index ad0a8f1b3e8..966721905a4 100644 --- a/dlls/wined3d/shader_spirv.c +++ b/dlls/wined3d/shader_spirv.c @@ -18,6 +18,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader); diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index cad27d7e7ea..ac6f9ea6222 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -21,6 +21,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); WINE_DECLARE_DEBUG_CHANNEL(d3d_perf); diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index 32923349c6b..78b1f52221c 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -21,6 +21,7 @@ */ #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); WINE_DECLARE_DEBUG_CHANNEL(d3d_perf); diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index e34be2996b1..3618490b1c7 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -27,6 +27,7 @@ #include <stdio.h> #include "wined3d_private.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/view.c b/dlls/wined3d/view.c index a95ff13410f..d318318d2b3 100644 --- a/dlls/wined3d/view.c +++ b/dlls/wined3d/view.c @@ -19,6 +19,7 @@ #include "wined3d_private.h" #include "wined3d_shaders.h" +#include "wined3d_vk.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index 15c8e237af3..0ff215f7312 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -27,6 +27,8 @@ #include "initguid.h" #include "wined3d_private.h" #include "d3d12.h" +#define VK_NO_PROTOTYPES +#include "wine/vulkan.h" #include <vkd3d.h> WINE_DEFAULT_DEBUG_CHANNEL(d3d); diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 3034b947c00..6e2bdc8aaf1 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -6048,6 +6048,4 @@ static inline bool wined3d_map_persistent(void) extern CRITICAL_SECTION wined3d_command_cs; -#include "wined3d_vk.h" - #endif diff --git a/dlls/wined3d/wined3d_vk.h b/dlls/wined3d/wined3d_vk.h index c44e8aa45b0..170d0cc3a79 100644 --- a/dlls/wined3d/wined3d_vk.h +++ b/dlls/wined3d/wined3d_vk.h @@ -24,6 +24,7 @@ #include "wine/wined3d.h" #define VK_NO_PROTOTYPES #include "wine/vulkan.h" +#include "wined3d_private.h" struct wined3d_buffer_vk; struct wined3d_context_vk;
1
0
0
0
Zebediah Figura : wined3d: Move vk_aspect_mask_from_format() functions to wined3d_vk.h.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: 49e437a0c0540854e3900136eda9d579ad003cc8 URL:
https://gitlab.winehq.org/wine/wine/-/commit/49e437a0c0540854e3900136eda9d5…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Dec 22 15:35:59 2022 -0600 wined3d: Move vk_aspect_mask_from_format() functions to wined3d_vk.h. --- dlls/wined3d/wined3d_private.h | 18 ++---------------- dlls/wined3d/wined3d_vk.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index fd7d766a1a4..3034b947c00 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -6014,22 +6014,6 @@ static inline bool isStateDirty(const struct wined3d_context *context, unsigned return wined3d_context_is_graphics_state_dirty(context, state_id); } -#include "wined3d_vk.h" - -static inline VkImageAspectFlags vk_aspect_mask_from_format(const struct wined3d_format *format) -{ - VkImageAspectFlags mask = 0; - - if (format->depth_size) - mask |= VK_IMAGE_ASPECT_DEPTH_BIT; - if (format->stencil_size) - mask |= VK_IMAGE_ASPECT_STENCIL_BIT; - if (!mask || format->red_size || format->green_size || format->blue_size || format->alpha_size) - mask |= VK_IMAGE_ASPECT_COLOR_BIT; - - return mask; -} - static inline bool wined3d_primitive_type_is_list(enum wined3d_primitive_type t) { return t == WINED3D_PT_POINTLIST @@ -6064,4 +6048,6 @@ static inline bool wined3d_map_persistent(void) extern CRITICAL_SECTION wined3d_command_cs; +#include "wined3d_vk.h" + #endif diff --git a/dlls/wined3d/wined3d_vk.h b/dlls/wined3d/wined3d_vk.h index 4ed77fcad53..c44e8aa45b0 100644 --- a/dlls/wined3d/wined3d_vk.h +++ b/dlls/wined3d/wined3d_vk.h @@ -256,6 +256,20 @@ void wined3d_format_colour_to_vk(const struct wined3d_format *format, const stru void wined3d_vk_swizzle_from_color_fixup(VkComponentMapping *mapping, struct color_fixup_desc fixup) DECLSPEC_HIDDEN; const char *wined3d_debug_vkresult(VkResult vr) DECLSPEC_HIDDEN; +static inline VkImageAspectFlags vk_aspect_mask_from_format(const struct wined3d_format *format) +{ + VkImageAspectFlags mask = 0; + + if (format->depth_size) + mask |= VK_IMAGE_ASPECT_DEPTH_BIT; + if (format->stencil_size) + mask |= VK_IMAGE_ASPECT_STENCIL_BIT; + if (!mask || format->red_size || format->green_size || format->blue_size || format->alpha_size) + mask |= VK_IMAGE_ASPECT_COLOR_BIT; + + return mask; +} + struct wined3d_bo_vk { struct wined3d_bo b;
1
0
0
0
Zebediah Figura : wined3d: Move remaining wined3d_context_vk functions to wined3d_vk.h.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: e4e7c9b23fb8b74bf0bb04b55e51fa196435800e URL:
https://gitlab.winehq.org/wine/wine/-/commit/e4e7c9b23fb8b74bf0bb04b55e51fa…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Dec 22 15:33:57 2022 -0600 wined3d: Move remaining wined3d_context_vk functions to wined3d_vk.h. --- dlls/wined3d/wined3d_private.h | 65 ++---------------------------------------- dlls/wined3d/wined3d_vk.h | 61 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index c3c3e2eef0f..fd7d766a1a4 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -113,7 +113,6 @@ static inline const char *wined3d_get_line(const char **ptr, const char *end) struct wined3d_fragment_pipe_ops; struct wined3d_adapter; struct wined3d_context; -struct wined3d_context_vk; struct wined3d_gl_info; struct wined3d_state; struct wined3d_swapchain_gl; @@ -5829,68 +5828,6 @@ static inline void wined3d_context_destroy_bo(struct wined3d_context *context, s context->device->adapter->adapter_ops->adapter_destroy_bo(context, bo); } -#include "wined3d_vk.h" - -static inline void wined3d_context_vk_reference_bo(const struct wined3d_context_vk *context_vk, - struct wined3d_bo_vk *bo) -{ - bo->command_buffer_id = context_vk->current_command_buffer.id; -} - -static inline void wined3d_context_vk_reference_image(const struct wined3d_context_vk *context_vk, - struct wined3d_image_vk *image) -{ - image->command_buffer_id = context_vk->current_command_buffer.id; -} - -static inline void wined3d_context_vk_reference_texture(const struct wined3d_context_vk *context_vk, - struct wined3d_texture_vk *texture_vk) -{ - wined3d_context_vk_reference_image(context_vk, &texture_vk->image); -} - -static inline void wined3d_context_vk_reference_resource(const struct wined3d_context_vk *context_vk, - struct wined3d_resource *resource) -{ - if (resource->type == WINED3D_RTYPE_BUFFER) - wined3d_context_vk_reference_bo(context_vk, wined3d_bo_vk(buffer_from_resource(resource)->buffer_object)); - else - wined3d_context_vk_reference_texture(context_vk, wined3d_texture_vk(texture_from_resource(resource))); -} - -static inline void wined3d_context_vk_reference_query(const struct wined3d_context_vk *context_vk, - struct wined3d_query_vk *query_vk) -{ - query_vk->command_buffer_id = context_vk->current_command_buffer.id; -} - -static inline void wined3d_context_vk_reference_sampler(const struct wined3d_context_vk *context_vk, - struct wined3d_sampler_vk *sampler_vk) -{ - sampler_vk->command_buffer_id = context_vk->current_command_buffer.id; -} - -static inline void wined3d_context_vk_reference_rendertarget_view(const struct wined3d_context_vk *context_vk, - struct wined3d_rendertarget_view_vk *rtv_vk) -{ - wined3d_context_vk_reference_resource(context_vk, rtv_vk->v.resource); - rtv_vk->command_buffer_id = context_vk->current_command_buffer.id; -} - -static inline void wined3d_context_vk_reference_shader_resource_view(const struct wined3d_context_vk *context_vk, - struct wined3d_shader_resource_view_vk *srv_vk) -{ - wined3d_context_vk_reference_resource(context_vk, srv_vk->v.resource); - srv_vk->view_vk.command_buffer_id = context_vk->current_command_buffer.id; -} - -static inline void wined3d_context_vk_reference_unordered_access_view(const struct wined3d_context_vk *context_vk, - struct wined3d_unordered_access_view_vk *uav_vk) -{ - wined3d_context_vk_reference_resource(context_vk, uav_vk->v.resource); - uav_vk->view_vk.command_buffer_id = context_vk->current_command_buffer.id; -} - static inline BOOL wined3d_dsv_srv_conflict(const struct wined3d_rendertarget_view *dsv, const struct wined3d_format *srv_format) { @@ -6077,6 +6014,8 @@ static inline bool isStateDirty(const struct wined3d_context *context, unsigned return wined3d_context_is_graphics_state_dirty(context, state_id); } +#include "wined3d_vk.h" + static inline VkImageAspectFlags vk_aspect_mask_from_format(const struct wined3d_format *format) { VkImageAspectFlags mask = 0; diff --git a/dlls/wined3d/wined3d_vk.h b/dlls/wined3d/wined3d_vk.h index 9e24fbafd85..4ed77fcad53 100644 --- a/dlls/wined3d/wined3d_vk.h +++ b/dlls/wined3d/wined3d_vk.h @@ -26,6 +26,7 @@ #include "wine/vulkan.h" struct wined3d_buffer_vk; +struct wined3d_context_vk; struct wined3d_device_vk; #define VK_INSTANCE_FUNCS() \ @@ -1035,4 +1036,64 @@ static inline const struct wined3d_format_vk *wined3d_format_vk(const struct win return CONTAINING_RECORD(format, struct wined3d_format_vk, f); } +static inline void wined3d_context_vk_reference_bo(const struct wined3d_context_vk *context_vk, + struct wined3d_bo_vk *bo) +{ + bo->command_buffer_id = context_vk->current_command_buffer.id; +} + +static inline void wined3d_context_vk_reference_image(const struct wined3d_context_vk *context_vk, + struct wined3d_image_vk *image) +{ + image->command_buffer_id = context_vk->current_command_buffer.id; +} + +static inline void wined3d_context_vk_reference_texture(const struct wined3d_context_vk *context_vk, + struct wined3d_texture_vk *texture_vk) +{ + wined3d_context_vk_reference_image(context_vk, &texture_vk->image); +} + +static inline void wined3d_context_vk_reference_resource(const struct wined3d_context_vk *context_vk, + struct wined3d_resource *resource) +{ + if (resource->type == WINED3D_RTYPE_BUFFER) + wined3d_context_vk_reference_bo(context_vk, wined3d_bo_vk(buffer_from_resource(resource)->buffer_object)); + else + wined3d_context_vk_reference_texture(context_vk, wined3d_texture_vk(texture_from_resource(resource))); +} + +static inline void wined3d_context_vk_reference_query(const struct wined3d_context_vk *context_vk, + struct wined3d_query_vk *query_vk) +{ + query_vk->command_buffer_id = context_vk->current_command_buffer.id; +} + +static inline void wined3d_context_vk_reference_sampler(const struct wined3d_context_vk *context_vk, + struct wined3d_sampler_vk *sampler_vk) +{ + sampler_vk->command_buffer_id = context_vk->current_command_buffer.id; +} + +static inline void wined3d_context_vk_reference_rendertarget_view(const struct wined3d_context_vk *context_vk, + struct wined3d_rendertarget_view_vk *rtv_vk) +{ + wined3d_context_vk_reference_resource(context_vk, rtv_vk->v.resource); + rtv_vk->command_buffer_id = context_vk->current_command_buffer.id; +} + +static inline void wined3d_context_vk_reference_shader_resource_view(const struct wined3d_context_vk *context_vk, + struct wined3d_shader_resource_view_vk *srv_vk) +{ + wined3d_context_vk_reference_resource(context_vk, srv_vk->v.resource); + srv_vk->view_vk.command_buffer_id = context_vk->current_command_buffer.id; +} + +static inline void wined3d_context_vk_reference_unordered_access_view(const struct wined3d_context_vk *context_vk, + struct wined3d_unordered_access_view_vk *uav_vk) +{ + wined3d_context_vk_reference_resource(context_vk, uav_vk->v.resource); + uav_vk->view_vk.command_buffer_id = context_vk->current_command_buffer.id; +} + #endif /* __WINE_WINED3D_VK */
1
0
0
0
Zebediah Figura : wined3d: Move struct wined3d_format_vk to wined3d_vk.h.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: e7de5a45a90dba3cf0551065f7839d8bafce8cfb URL:
https://gitlab.winehq.org/wine/wine/-/commit/e7de5a45a90dba3cf0551065f7839d…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Dec 22 15:31:44 2022 -0600 wined3d: Move struct wined3d_format_vk to wined3d_vk.h. --- dlls/wined3d/wined3d_private.h | 18 ++---------------- dlls/wined3d/wined3d_vk.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 00e1b31eac1..c3c3e2eef0f 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -5515,8 +5515,6 @@ struct wined3d_format enum wined3d_format_id typeless_id; }; -#include "wined3d_vk.h" - const struct wined3d_format *wined3d_get_format(const struct wined3d_adapter *adapter, enum wined3d_format_id format_id, unsigned int bind_flags) DECLSPEC_HIDDEN; enum wined3d_format_id wined3d_get_typed_format_id(const struct wined3d_adapter *adapter, @@ -5525,8 +5523,6 @@ void wined3d_format_calculate_pitch(const struct wined3d_format *format, unsigne 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; -void wined3d_format_colour_to_vk(const struct wined3d_format *format, const struct wined3d_color *c, - VkClearColorValue *retval) DECLSPEC_HIDDEN; void wined3d_format_convert_from_float(const struct wined3d_format *format, const struct wined3d_color *color, void *ret) DECLSPEC_HIDDEN; void wined3d_format_copy_data(const struct wined3d_format *format, const uint8_t *src, @@ -5563,18 +5559,6 @@ static inline const struct wined3d_format_gl *wined3d_format_gl(const struct win return CONTAINING_RECORD(format, struct wined3d_format_gl, f); } -struct wined3d_format_vk -{ - struct wined3d_format f; - - VkFormat vk_format; -}; - -static inline const struct wined3d_format_vk *wined3d_format_vk(const struct wined3d_format *format) -{ - return CONTAINING_RECORD(format, struct wined3d_format_vk, f); -} - BOOL wined3d_array_reserve(void **elements, SIZE_T *capacity, SIZE_T count, SIZE_T size) DECLSPEC_HIDDEN; static inline BOOL wined3d_format_is_typeless(const struct wined3d_format *format) @@ -5845,6 +5829,8 @@ static inline void wined3d_context_destroy_bo(struct wined3d_context *context, s context->device->adapter->adapter_ops->adapter_destroy_bo(context, bo); } +#include "wined3d_vk.h" + static inline void wined3d_context_vk_reference_bo(const struct wined3d_context_vk *context_vk, struct wined3d_bo_vk *bo) { diff --git a/dlls/wined3d/wined3d_vk.h b/dlls/wined3d/wined3d_vk.h index 0d5d120b271..9e24fbafd85 100644 --- a/dlls/wined3d/wined3d_vk.h +++ b/dlls/wined3d/wined3d_vk.h @@ -250,6 +250,8 @@ VkAccessFlags vk_access_mask_from_buffer_usage(VkBufferUsageFlags usage) DECLSPE VkPipelineStageFlags vk_pipeline_stage_mask_from_buffer_usage(VkBufferUsageFlags usage) DECLSPEC_HIDDEN; VkBufferUsageFlags vk_buffer_usage_from_bind_flags(uint32_t bind_flags) DECLSPEC_HIDDEN; VkMemoryPropertyFlags vk_memory_type_from_access_flags(uint32_t access, uint32_t usage) DECLSPEC_HIDDEN; +void wined3d_format_colour_to_vk(const struct wined3d_format *format, const struct wined3d_color *c, + VkClearColorValue *retval) DECLSPEC_HIDDEN; void wined3d_vk_swizzle_from_color_fixup(VkComponentMapping *mapping, struct color_fixup_desc fixup) DECLSPEC_HIDDEN; const char *wined3d_debug_vkresult(VkResult vr) DECLSPEC_HIDDEN; @@ -1021,4 +1023,16 @@ HRESULT wined3d_swapchain_vk_init(struct wined3d_swapchain_vk *swapchain_vk, struct wined3d_swapchain_state_parent *state_parent, void *parent, const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; +struct wined3d_format_vk +{ + struct wined3d_format f; + + VkFormat vk_format; +}; + +static inline const struct wined3d_format_vk *wined3d_format_vk(const struct wined3d_format *format) +{ + return CONTAINING_RECORD(format, struct wined3d_format_vk, f); +} + #endif /* __WINE_WINED3D_VK */
1
0
0
0
Zebediah Figura : wined3d: Move struct wined3d_swapchain_vk to wined3d_vk.h.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: 85869cb78cde67f5150d92f796f8922655b2addd URL:
https://gitlab.winehq.org/wine/wine/-/commit/85869cb78cde67f5150d92f796f892…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Dec 22 15:30:14 2022 -0600 wined3d: Move struct wined3d_swapchain_vk to wined3d_vk.h. --- dlls/wined3d/wined3d_private.h | 32 ++------------------------------ dlls/wined3d/wined3d_vk.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 9c52f1c7eaf..00e1b31eac1 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -4995,36 +4995,6 @@ HRESULT wined3d_swapchain_gl_init(struct wined3d_swapchain_gl *swapchain_gl, struct wined3d_swapchain_state_parent *state_parent, void *parent, const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; -#include "wined3d_vk.h" - -struct wined3d_swapchain_vk -{ - struct wined3d_swapchain s; - - VkSwapchainKHR vk_swapchain; - VkSurfaceKHR vk_surface; - VkImage *vk_images; - struct - { - VkSemaphore available; - VkSemaphore presentable; - uint64_t command_buffer_id; - } *vk_semaphores; - unsigned int current, image_count; - unsigned int width, height; -}; - -static inline struct wined3d_swapchain_vk *wined3d_swapchain_vk(struct wined3d_swapchain *swapchain) -{ - return CONTAINING_RECORD(swapchain, struct wined3d_swapchain_vk, s); -} - -void wined3d_swapchain_vk_cleanup(struct wined3d_swapchain_vk *swapchain_vk) DECLSPEC_HIDDEN; -HRESULT wined3d_swapchain_vk_init(struct wined3d_swapchain_vk *swapchain_vk, - struct wined3d_device *device, struct wined3d_swapchain_desc *desc, - struct wined3d_swapchain_state_parent *state_parent, void *parent, - const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; - /***************************************************************************** * Utility function prototypes */ @@ -5545,6 +5515,8 @@ struct wined3d_format enum wined3d_format_id typeless_id; }; +#include "wined3d_vk.h" + const struct wined3d_format *wined3d_get_format(const struct wined3d_adapter *adapter, enum wined3d_format_id format_id, unsigned int bind_flags) DECLSPEC_HIDDEN; enum wined3d_format_id wined3d_get_typed_format_id(const struct wined3d_adapter *adapter, diff --git a/dlls/wined3d/wined3d_vk.h b/dlls/wined3d/wined3d_vk.h index 64e11cb7be8..0d5d120b271 100644 --- a/dlls/wined3d/wined3d_vk.h +++ b/dlls/wined3d/wined3d_vk.h @@ -993,4 +993,32 @@ HRESULT wined3d_unordered_access_view_vk_init(struct wined3d_unordered_access_vi void wined3d_unordered_access_view_vk_update(struct wined3d_unordered_access_view_vk *view_vk, struct wined3d_context_vk *context_vk) DECLSPEC_HIDDEN; +struct wined3d_swapchain_vk +{ + struct wined3d_swapchain s; + + VkSwapchainKHR vk_swapchain; + VkSurfaceKHR vk_surface; + VkImage *vk_images; + struct + { + VkSemaphore available; + VkSemaphore presentable; + uint64_t command_buffer_id; + } *vk_semaphores; + unsigned int current, image_count; + unsigned int width, height; +}; + +static inline struct wined3d_swapchain_vk *wined3d_swapchain_vk(struct wined3d_swapchain *swapchain) +{ + return CONTAINING_RECORD(swapchain, struct wined3d_swapchain_vk, s); +} + +void wined3d_swapchain_vk_cleanup(struct wined3d_swapchain_vk *swapchain_vk) DECLSPEC_HIDDEN; +HRESULT wined3d_swapchain_vk_init(struct wined3d_swapchain_vk *swapchain_vk, + struct wined3d_device *device, struct wined3d_swapchain_desc *desc, + struct wined3d_swapchain_state_parent *state_parent, void *parent, + const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; + #endif /* __WINE_WINED3D_VK */
1
0
0
0
Zebediah Figura : wined3d: Move struct wined3d_unordered_access_view_vk to wined3d_vk.h.
by Alexandre Julliard
14 Jul '23
14 Jul '23
Module: wine Branch: master Commit: 63df7fc677f6b9879fad5d5f190cd24d88cb355d URL:
https://gitlab.winehq.org/wine/wine/-/commit/63df7fc677f6b9879fad5d5f190cd2…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Dec 22 15:28:37 2022 -0600 wined3d: Move struct wined3d_unordered_access_view_vk to wined3d_vk.h. --- dlls/wined3d/wined3d_private.h | 33 ++------------------------------- dlls/wined3d/wined3d_vk.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index aedfc3f789f..9c52f1c7eaf 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -4913,37 +4913,6 @@ HRESULT wined3d_unordered_access_view_gl_init(struct wined3d_unordered_access_vi void wined3d_unordered_access_view_gl_update(struct wined3d_unordered_access_view_gl *uav_gl, struct wined3d_context_gl *context_gl) DECLSPEC_HIDDEN; -#include "wined3d_vk.h" - -struct wined3d_unordered_access_view_vk -{ - struct wined3d_unordered_access_view v; - struct wined3d_view_vk view_vk; - - VkBufferView vk_counter_view; - struct wined3d_bo_vk counter_bo; -}; - -static inline struct wined3d_unordered_access_view_vk *wined3d_unordered_access_view_vk( - struct wined3d_unordered_access_view *view) -{ - return CONTAINING_RECORD(view, struct wined3d_unordered_access_view_vk, v); -} - -static inline void wined3d_unordered_access_view_vk_barrier(struct wined3d_unordered_access_view_vk *uav_vk, - struct wined3d_context_vk *context_vk, uint32_t bind_mask) -{ - wined3d_resource_vk_barrier(uav_vk->v.resource, context_vk, bind_mask); -} - -void wined3d_unordered_access_view_vk_clear(struct wined3d_unordered_access_view_vk *view_vk, - const struct wined3d_uvec4 *clear_value, struct wined3d_context_vk *context_vk, bool fp) DECLSPEC_HIDDEN; -HRESULT wined3d_unordered_access_view_vk_init(struct wined3d_unordered_access_view_vk *view_vk, - const struct wined3d_view_desc *desc, struct wined3d_resource *resource, - void *parent, const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; -void wined3d_unordered_access_view_vk_update(struct wined3d_unordered_access_view_vk *view_vk, - struct wined3d_context_vk *context_vk) DECLSPEC_HIDDEN; - struct wined3d_swapchain_state { struct wined3d *wined3d; @@ -5026,6 +4995,8 @@ HRESULT wined3d_swapchain_gl_init(struct wined3d_swapchain_gl *swapchain_gl, struct wined3d_swapchain_state_parent *state_parent, void *parent, const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; +#include "wined3d_vk.h" + struct wined3d_swapchain_vk { struct wined3d_swapchain s; diff --git a/dlls/wined3d/wined3d_vk.h b/dlls/wined3d/wined3d_vk.h index d2067d5f9fb..64e11cb7be8 100644 --- a/dlls/wined3d/wined3d_vk.h +++ b/dlls/wined3d/wined3d_vk.h @@ -964,4 +964,33 @@ void wined3d_shader_resource_view_vk_update_buffer(struct wined3d_shader_resourc void wined3d_shader_resource_view_vk_update_layout(struct wined3d_shader_resource_view_vk *srv_vk, VkImageLayout layout) DECLSPEC_HIDDEN; +struct wined3d_unordered_access_view_vk +{ + struct wined3d_unordered_access_view v; + struct wined3d_view_vk view_vk; + + VkBufferView vk_counter_view; + struct wined3d_bo_vk counter_bo; +}; + +static inline struct wined3d_unordered_access_view_vk *wined3d_unordered_access_view_vk( + struct wined3d_unordered_access_view *view) +{ + return CONTAINING_RECORD(view, struct wined3d_unordered_access_view_vk, v); +} + +static inline void wined3d_unordered_access_view_vk_barrier(struct wined3d_unordered_access_view_vk *uav_vk, + struct wined3d_context_vk *context_vk, uint32_t bind_mask) +{ + wined3d_resource_vk_barrier(uav_vk->v.resource, context_vk, bind_mask); +} + +void wined3d_unordered_access_view_vk_clear(struct wined3d_unordered_access_view_vk *view_vk, + const struct wined3d_uvec4 *clear_value, struct wined3d_context_vk *context_vk, bool fp) DECLSPEC_HIDDEN; +HRESULT wined3d_unordered_access_view_vk_init(struct wined3d_unordered_access_view_vk *view_vk, + const struct wined3d_view_desc *desc, struct wined3d_resource *resource, + void *parent, const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN; +void wined3d_unordered_access_view_vk_update(struct wined3d_unordered_access_view_vk *view_vk, + struct wined3d_context_vk *context_vk) DECLSPEC_HIDDEN; + #endif /* __WINE_WINED3D_VK */
1
0
0
0
← Newer
1
...
42
43
44
45
46
47
48
...
87
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Results per page:
10
25
50
100
200