Rev. 1.01
24
AmdDxLfRegionDesc regionDesc;
regionDesc.fileOffset = FILE_OFFSET;
regionDesc.bufferOffset = BUFF_OFFSET;
regionDesc.regionSize = dxLFFileInfo.blockSize;
// Read information from the file: BUFF_OFFSET, SIZE_TO_READ and FILE_OFFSET must
// align with the sector size.
hr = dxSsgExt->ReadBufferFromFile(pDxBuffer, hSsgFile, 1, ®ionDescs, nullptr);
if (FAILED(hr)) {
s
td::cout
<<
"Error: Unable to read data from file."
<< std::endl;
}
// Release the file when you’re done with it.
hr = dxSsgExt->ReleaseFile(hSsgFile);
if (FAILED(hr)) {
s
td::cout
<<
"Warning: Unable to release file."
<< std::endl;
}
Содержание Pro Solid State Graphics
Страница 1: ...Solid State Graphics SSG API User Manual ...