218{
219 struct dxbc src_dxbc, dst_dxbc;
222
224 {
225 WARN(
"Invalid arguments: data %p, data_size %lu, flags %#x, blob %p\n",
data, data_size,
flags,
blob);
227 }
228
231 {
234 }
235
238 {
239 WARN(
"Failed to parse blob part\n");
241 }
242
245 {
247 WARN(
"Failed to init dxbc\n");
249 }
250
251 for (
i = 0;
i < src_dxbc.count; ++
i)
252 {
254
256 {
259 {
262 WARN(
"Failed to add section to dxbc\n");
264 }
265 }
266 }
267
268 count = dst_dxbc.count;
269
270 switch(part)
271 {
280 break;
281
284 break;
285
288 break;
289
290 default:
292 break;
293 }
294
296 {
299 WARN(
"Nothing to write into the blob (count = 0)\n");
301 }
302
303
306 {
309 {
310 memcpy(ID3D10Blob_GetBufferPointer(*
blob), dst_dxbc.sections[0].data, dst_dxbc.sections[0].data_size);
311 }
312 else
313 {
314 WARN(
"Could not create blob\n");
315 }
316 }
317 else
318 {
321 {
322 WARN(
"Failed to write blob part\n");
323 }
324 }
325
328
330}
@ D3D_BLOB_TEST_COMPILE_PERF
HRESULT dxbc_add_section(struct dxbc *dxbc, DWORD tag, const char *data, DWORD data_size) DECLSPEC_HIDDEN
HRESULT dxbc_init(struct dxbc *dxbc, unsigned int size) DECLSPEC_HIDDEN
void dxbc_destroy(struct dxbc *dxbc) DECLSPEC_HIDDEN
#define D3DERR_INVALIDCALL
HRESULT dxbc_parse(const char *data, SIZE_T data_size, struct dxbc *dxbc) DECLSPEC_HIDDEN
HRESULT dxbc_write_blob(struct dxbc *dxbc, ID3DBlob **blob) DECLSPEC_HIDDEN
HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob)
static BOOL check_blob_part(DWORD tag, D3D_BLOB_PART part)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)