D3DReadFileToBlob function

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 1 rated this helpful - Rate this topic

Note  You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.

Reads a file that is on disk into memory.

Syntax

HRESULT WINAPI D3DReadFileToBlob(
  in   LPCWSTR pFileName,
  out  ID3DBlob **ppContents
);

Parameters

pFileName [in]

A pointer to a constant null-terminated string that contains the name of the file to read into memory.

ppContents [out]

A pointer to a variable that receives a pointer to the ID3DBlob interface that contains information that D3DReadFileToBlob read from the pFileName file. You can use this ID3DBlob interface to access the file information and pass it to other compiler functions.

Remarks

Note  The D3dcompiler_44.dll or later version of the file contains the D3DReadFileToBlob compiler function.

Requirements

Header

D3Dcompiler.h

Library

D3dcompiler.lib or D3dcompiler_nn.dll

See also

Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/5/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.