vkd3d-shader/hlsl: Refactor swizzles.
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
2129 2131 return true; 2130 2132 } 2131 2133 2132 static bool invert_swizzle_matrix(uint32_t *swizzle, unsigned int *writemask, unsigned int *ret_width) 2134 static bool invert_swizzle_matrix(const struct hlsl_matrix_swizzle *swizzle, 2135 uint32_t *ret_inverted, unsigned int *writemask, unsigned int *ret_width) 2133 2136 { 2134 /* swizzle is 8 bits per component, each component is (from LSB) 4 bits X, then 4 bits Y. 2135 * components are indexed by their sources. i.e. the first component comes from the first 2136 * component of the rhs. */ 2137 unsigned int i, j, bit = 0, inverted = 0, width, new_writemask = 0, new_swizzle = 0; 2137 unsigned int i, j, bit = 0, inverted = 0, width, new_writemask = 0; 2138 struct hlsl_matrix_swizzle new_swizzle = {{{0}}}; changed this line in version 2 of the diff
- Resolved by Francisco Casas
- Resolved by Francisco Casas
- Resolved by Francisco Casas
- Resolved by Francisco Casas
- Resolved by Francisco Casas
- Resolved by Francisco Casas
added 81 commits
-
fb49a2f7...ed6061df - 77 commits from branch
wine:master
- 70e2148f - vkd3d-shader/hlsl: Document matrix swizzles.
- a905a78a - vkd3d-shader/hlsl: Use a structure for matrix swizzles.
- 474a0ac4 - vkd3d-shader/hlsl: Use swizzle helpers in more places.
- 09095403 - vkd3d-shader/hlsl: Store swizzles in vsir format.
Toggle commit list-
fb49a2f7...ed6061df - 77 commits from branch
Please register or sign in to reply