通过在属性中指定数组的大小,我使用渲染纹理作为纹理数组。但是,有时当我超过某个值时(例如。128x128纹理是45.)它返回了一个错误:D3D11: Failed to create RenderTexture (128 x 128 fmt 39 aa 1), error 0x80070057 浏览10提问于2022-05-20得票数 0 ...
SetState(CAPTURESTATE_FAILED);return; }CD3D11_RENDER_TARGET_VIEW_DESCrtDesc(D3D11_RTV_DIMENSION_TEXTURE2D); result = pDevice->CreateRenderTargetView(m_renderTexture, &rtDesc, &m_renderSurface);if(FAILED(result)) { CLog::Log(LOGERROR,"CRenderCaptureDX::BeginRender: CreateRenderTargetView fai...
result = pDevice->CreateTexture2D(&texDesc,nullptr, &m_renderTexture);if(FAILED(result)) { CLog::Log(LOGERROR,"CRenderCaptureDX::BeginRender: CreateTexture2D (RENDER_TARGET) failed %s", g_Windowing.GetErrorDescription(result).c_str()); SetState(CAPTURESTATE_FAILED);return; }CD3D11_RENDER...
hr =this->gDevice->CreateShaderResourceView(sceneTex,NULL, &sceneSRV);if(FAILED(hr)) { MaloW::Debug("FXAA: Failed to create shader resource view"); }//set shader variablesshader->SetResource("sceneTex", sceneSRV); shader->SetInt("FXAAPreset",this->mPreset); shader->SetFloat4("rcpFra...
V_RETURN(pd3dDevice->CreatePixelShader(pixelShaderBuffer->GetBufferPointer(), pixelShaderBuffer->GetBufferSize(),NULL, &gRenderFramePS));// Create a pixel shader that renders the error texture.V_RETURN(CompileShaderFromFile(L"shaders.hlsl","RenderTexturePS","ps_4_0", &pixelShaderBuffer));...
voididRenderTexture::CreateFromImages( idImage *colorImage, idImage *depthStencilImage ) {ID3D11Texture2D* albedoImage; HRESULT hr;if(colorImage ==NULL) {// Create a render target viewhr = render.GetSwapChain()->GetBuffer(0, __uuidof(ID3D11Texture2D), ( LPVOID* )&albedoImage );if( F...
pContext->CopyResource(m_copySurface, m_renderTexture);(m_query) { pContext->End(m_query); }if(m_flags & CAPTUREFLAG_IMMEDIATELY) SurfaceToBuffer();elseSetState(CAPTURESTATE_NEEDSREADOUT); } voidCRenderCaptureDX::EndRender() {// send commands to the GPU queueautodeviceResources = DX::De...