HRESULT result = device->CreateTexture2D(&offscreenTextureDesc,NULL, &mOffscreenTexture);if(FAILED(result)) { ERR("Could not create offscreen texture: %08lX", result); release();if(d3d11::isDeviceLostError(result)) {returnEGL_CONTEXT_LOST; }else{returnEGL_BAD_ALLOC; } } d3d11::SetDebu...
ID3D11Device *device =this->GetDevice()->GetD3D11Device(); HRESULT hr = device->CreateTexture2D(&mTextureParams, textureData, &mDXTexture);if(hr != S_OK) {//TODO:Error handlingthrow"Error Creating D3D11 Texture!"; } ID3D11ShaderResourceView *resourceView; D3D11_SHADER_RESOURCE_VIEW_D...
HRESULT result = device->CreateTexture2D(&offscreenTextureDesc,NULL, &mOffscreenTexture);if(FAILED(result)) { ERR("Could not create offscreen texture: %08lX", result); release();if(d3d11::isDeviceLostError(result)) {returnEGL_CONTEXT_LOST; }else{returnEGL_BAD_ALLOC; } } d3d11::SetDebu...
HRESULT removedReason = device->GetDeviceRemovedReason(); ERR("Present failed: the D3D11 device was removed: 0x%08X", removedReason);returnEGL_CONTEXT_LOST; }elseif(result == DXGI_ERROR_DEVICE_RESET) { ERR("Present failed: the D3D11 device was reset from a bad command.");returnEGL_CONTE...
HRESULT result = device->CreateBuffer(&bufferDesc,NULL, &newBuffer);if(FAILED(result)) {returngl::Error(GL_OUT_OF_MEMORY,"Failed to create internal buffer, result: 0x%X.", result); }if(mNativeStorage && preserveData) {// We don't call resize if the buffer is big enough already.ASSER...
HRESULT removedReason = device->GetDeviceRemovedReason(); ERR("Present failed: the D3D11 device was removed: 0x%08X", removedReason);returnEGL_CONTEXT_LOST; }elseif(result == DXGI_ERROR_DEVICE_RESET) { ERR("Present failed: the D3D11 device was reset from a bad command.");returnEGL_CONTE...
HRESULT result = deviceContext->Map(mVertexBuffer,0, D3D11_MAP_WRITE_DISCARD,0, &mappedResource);if(FAILED(result)) {returngl::Error(GL_OUT_OF_MEMORY,"Failed to map internal masked clear vertex buffer, HRESULT: 0x%X.", result);
HRESULT removedReason = device->GetDeviceRemovedReason(); ERR("Present failed: the D3D11 device was removed: 0x%08X", removedReason);returnEGL_CONTEXT_LOST; }elseif(result == DXGI_ERROR_DEVICE_RESET) { ERR("Present failed: the D3D11 device was reset from a bad command.");returnEGL_CONTE...
DeviceContext->RSSetState(PreviousState); } } 开发者ID:subr3v,项目名称:s-engine,代码行数:34,代码来源:ForwardPlusRenderer.cpp 示例2: Render ▲点赞 5▼ boolSkyBox::Render(std::shared_ptr<D3DRenderer> d3d, DirectX::CXMMATRIX world, DirectX::CXMMATRIX view, DirectX::CXMMATRIX projection,st...