winex11: Remove now unnecessary surface wrapper struct.
[wine.git] / dlls / d3dcompiler_43 / utils.h
blobf587778d13e09782b7715deda5446e1e9b248aa7
1 /*
2 * Copyright 2022 Matteo Bruni for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_UTILS_H
20 #define __WINE_UTILS_H
22 #include <stdint.h>
24 static inline uint32_t read_u32(const char **ptr)
26 uint32_t r;
28 memcpy(&r, *ptr, sizeof(r));
29 *ptr += sizeof(r);
30 return r;
33 void skip_u32_unknown(const char **ptr, unsigned int count);
35 #endif /* __WINE_UTILS_H */