Home
last modified time | relevance | path

Searched refs:MipLevels (Results 1 - 25 of 51) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_util.h29 inline void D3D12DecomposeSubresource( UINT Subresource, UINT MipLevels, UINT ArraySize, _Out_ T& MipSlice, _Out_ U& ArraySlice, _Out_ V& PlaneSlice ) noexcept
31 MipSlice = static_cast<T>(Subresource % MipLevels);
32 ArraySlice = static_cast<U>((Subresource / MipLevels) % ArraySize);
33 PlaneSlice = static_cast<V>(Subresource / (MipLevels * ArraySize));
37 constexpr UINT D3D12CalcSubresource( UINT MipSlice, UINT ArraySlice, UINT PlaneSlice, UINT MipLevels, UINT ArraySize ) noexcept
39 return MipSlice + ArraySlice * MipLevels + PlaneSlice * MipLevels * ArraySize;
113 MipLevels = mipLevels;
180 { return D3D12CalcSubresource(MipSlice, ArraySlice, PlaneSlice, MipLevels, ArraySize()); }
189 l.MipLevels
[all...]
H A Dd3d12_screen.cpp960 srv.Texture1D.MipLevels = 1; in d3d12_init_null_srvs()
966 srv.Texture1DArray.MipLevels = 1; in d3d12_init_null_srvs()
974 srv.Texture2D.MipLevels = 1; in d3d12_init_null_srvs()
981 srv.Texture2DArray.MipLevels = 1; in d3d12_init_null_srvs()
998 srv.Texture3D.MipLevels = 1; in d3d12_init_null_srvs()
1004 srv.TextureCube.MipLevels = 1; in d3d12_init_null_srvs()
1010 srv.TextureCubeArray.MipLevels = 1; in d3d12_init_null_srvs()
H A Dd3d12_bufmgr.cpp90 unsigned total_subresources = desc.MipLevels * array_size * d3d12_non_opaque_plane_count(desc.Format); in d3d12_bo_wrap_res()
125 res_desc.MipLevels = 1; in d3d12_bo_new()
H A Dd3d12_video_dec_references_mgr.h193 refDesc.MipLevels,
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
H A DShader.cpp1225 desc.u.tex.last_level = pCreateSRView->Tex1D.MipLevels - 1 + desc.u.tex.first_level;
1228 assert(pCreateSRView->Tex1D.MipLevels != 0 && pCreateSRView->Tex1D.MipLevels != (UINT)-1);
1233 desc.u.tex.last_level = pCreateSRView->Tex2D.MipLevels - 1 + desc.u.tex.first_level;
1236 assert(pCreateSRView->Tex2D.MipLevels != 0 && pCreateSRView->Tex2D.MipLevels != (UINT)-1);
1241 desc.u.tex.last_level = pCreateSRView->Tex3D.MipLevels - 1 + desc.u.tex.first_level;
1243 assert(pCreateSRView->Tex3D.MipLevels != 0 && pCreateSRView->Tex3D.MipLevels != (UINT)-1);
1247 desc.u.tex.last_level = pCreateSRView->TexCube.MipLevels
[all...]
H A DResource.cpp157 UINT MipLevels = resource->last_level + 1; in subResourceBox() local
163 *pLevel = SubResource % MipLevels; in subResourceBox()
164 layer = SubResource / MipLevels; in subResourceBox()
221 DebugPrintf(" MipLevels = %u\n", pCreateResource->MipLevels); in CreateResource()
265 pResource->MipLevels = pCreateResource->MipLevels; in CreateResource()
287 templat.last_level = pCreateResource->MipLevels - 1; in CreateResource()
314 pResource->NumSubResources = pCreateResource->MipLevels * pCreateResource->ArraySize; in CreateResource()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DResourceManager11.cpp55 return ComputeMippedMemoryUsage(desc->Width, desc->Height, 1, pixelBytes, desc->MipLevels); in ComputeMemoryUsage()
64 desc->MipLevels); in ComputeMemoryUsage()
302 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in ClearResource()
470 UINT subresourceCount = desc->MipLevels * desc->ArraySize; in createInitDataIfNeeded()
476 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in createInitDataIfNeeded()
480 UINT subresourceIndex = D3D11CalcSubresource(mipLevel, arrayIndex, desc->MipLevels); in createInitDataIfNeeded()
520 UINT subresourceCount = desc->MipLevels; in createInitDataIfNeeded()
526 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in createInitDataIfNeeded()
528 UINT subresourceIndex = D3D11CalcSubresource(mipLevel, 0, desc->MipLevels); in createInitDataIfNeeded()
H A DRenderTarget11.cpp34 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
47 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
60 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
H A DExternalImageSiblingImpl11.cpp175 srvDesc.Texture2DArray.MipLevels = 1; in createRenderTarget()
192 srvDesc.Texture2D.MipLevels = 1; in createRenderTarget()
H A DTextureStorage11.cpp995 mMipLevels = texDesc.MipLevels; in TextureStorage11_2D()
1274 desc.MipLevels = mipLevels; in ensureTextureExists()
1463 srvDesc.Texture2D.MipLevels = mipLevels; in createSRVForSampler()
1506 srvDesc.Texture2D.MipLevels = 1; in createSRVForImage()
1542 desc.MipLevels = mMipLevels; in getSwizzleTexture()
1603 dropDesc.MipLevels = mMipLevels; in ensureDropStencilTexture()
1762 srvDesc.Texture2DArray.MipLevels = 1; in createSRVForSampler()
1986 desc.MipLevels = mMipLevels; in getSwizzleTexture()
2066 srvDesc.Texture2D.MipLevels = mipLevels; in createSRVForSampler()
2412 desc.MipLevels in ensureTextureExists()
[all...]
H A DSwapChain11.cpp257 offscreenTextureDesc.MipLevels = 1; in resetOffscreenColorBuffer()
329 offscreenSRVDesc.Texture2D.MipLevels = static_cast<UINT>(-1); in resetOffscreenColorBuffer()
390 depthStencilTextureDesc.MipLevels = 1; in resetOffscreenDepthBuffer()
453 depthStencilSRVDesc.Texture2D.MipLevels = static_cast<UINT>(-1); in resetOffscreenDepthBuffer()
1005 offscreenSRVDesc.Texture2D.MipLevels = static_cast<UINT>(-1); in getRenderTargetShaderResource()
H A DImage11.cpp479 resolveDesc.MipLevels = 1; in copyWithoutConversion()
558 desc.MipLevels = lodOffset + 1; in createStagingTexture()
594 desc.MipLevels = lodOffset + 1; in createStagingTexture()
/third_party/skia/src/gpu/d3d/
H A DGrD3DTextureResource.cpp43 // If MipLevels is 0, for some formats the API will automatically calculate the maximum in InitTextureResourceInfo()
45 SkASSERT(desc.MipLevels > 0); in InitTextureResourceInfo()
55 info->fLevelCount = desc.MipLevels; in InitTextureResourceInfo()
76 msTextureDesc.MipLevels = 1; in CreateMSAA()
H A DGrD3DAttachment.cpp38 resourceDesc.MipLevels = 1; in MakeStencil()
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_image.c134 .MipLevels = 1, in dzn_image_create()
153 image->desc.MipLevels = 1; in dzn_image_create()
167 image->desc.MipLevels = pCreateInfo->mipLevels; in dzn_image_create()
317 ((subres->baseArrayLayer + layer) * image->desc.MipLevels) + in dzn_image_layers_get_subresource_index()
318 (planeSlice * image->desc.MipLevels * image->desc.DepthOrArraySize); in dzn_image_layers_get_subresource_index()
331 ((subres->baseArrayLayer + layer) * image->desc.MipLevels) + in dzn_image_range_get_subresource_index()
332 (planeSlice * image->desc.MipLevels * image->desc.DepthOrArraySize); in dzn_image_range_get_subresource_index()
344 (subres->arrayLayer * image->desc.MipLevels) + in dzn_image_get_subresource_index()
345 (planeSlice * image->desc.MipLevels * image->desc.DepthOrArraySize); in dzn_image_get_subresource_index()
896 iview->srv_desc.Texture1DArray.MipLevels in dzn_image_view_prepare_srv_desc()
[all...]
/third_party/skia/third_party/externals/imgui/backends/
H A Dimgui_impl_dx12.cpp184 desc.MipLevels = 1; in ImGui_ImplDX12_RenderDrawData()
207 desc.MipLevels = 1; in ImGui_ImplDX12_RenderDrawData()
306 desc.MipLevels = 1; in ImGui_ImplDX12_CreateFontsTexture()
324 desc.MipLevels = 1; in ImGui_ImplDX12_CreateFontsTexture()
419 srvDesc.Texture2D.MipLevels = desc.MipLevels; in ImGui_ImplDX12_CreateFontsTexture()
H A Dimgui_impl_dx10.cpp309 desc.MipLevels = 1; in ImGui_ImplDX10_CreateFontsTexture()
330 srv_desc.Texture2D.MipLevels = desc.MipLevels; in ImGui_ImplDX10_CreateFontsTexture()
H A Dimgui_impl_dx11.cpp321 desc.MipLevels = 1; in ImGui_ImplDX11_CreateFontsTexture()
342 srvDesc.Texture2D.MipLevels = desc.MipLevels; in ImGui_ImplDX11_CreateFontsTexture()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DStagingBufferD3D12.cpp35 resourceDescriptor.MipLevels = 1; in Initialize()
H A DTextureD3D12.cpp472 DAWN_INVALID_IF(d3dDescriptor.MipLevels != 1, in ValidateD3D12TextureCanBeWrapped()
474 d3dDescriptor.MipLevels); in ValidateD3D12TextureCanBeWrapped()
606 resourceDescriptor.MipLevels = static_cast<UINT16>(GetNumMipLevels()); in InitializeAsInternalTexture()
1263 mSrvDesc.Texture2DArray.MipLevels = descriptor->mipLevelCount; in TextureView()
1276 mSrvDesc.TextureCubeArray.MipLevels = descriptor->mipLevelCount; in TextureView()
1283 mSrvDesc.Texture3D.MipLevels = descriptor->mipLevelCount; in TextureView()
/third_party/skia/third_party/externals/d3d12allocator/src/
H A DD3D12Sample.cpp564 depthStencilResourceDesc.MipLevels = 1; in InitD3D()
687 constantBufferResourceDesc.MipLevels = 1; in InitD3D()
810 vertexBufferResourceDesc.MipLevels = 1; in InitD3D()
841 vertexBufferUploadResourceDesc.MipLevels = 1; in InitD3D()
922 indexBufferResourceDesc.MipLevels = 1; in InitD3D()
948 indexBufferUploadResourceDesc.MipLevels = 1; in InitD3D()
1003 cbPerObjectUploadResourceDesc.MipLevels = 1; in InitD3D()
1064 textureDesc.MipLevels = 1; in InitD3D()
1102 textureUploadResourceDesc.MipLevels = 1; in InitD3D()
1138 srvDesc.Texture2D.MipLevels in InitD3D()
[all...]
H A DTests.cpp72 outResourceDesc.MipLevels = 1; in FillResourceDescForBuffer()
396 resourceDesc.MipLevels = 1; in TestCustomHeapFlags()
487 resourceDesc.MipLevels = 1; in TestPlacedResources()
510 resourceDesc.MipLevels = 1; in TestPlacedResources()
749 resDesc1.MipLevels = 1; in TestAliasingMemory()
762 resDesc2.MipLevels = 0; in TestAliasingMemory()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A DEGLStreamTest.cpp491 desc.MipLevels = 1; in TEST_P()
604 desc.MipLevels = 1; in TEST_P()
749 desc.MipLevels = 1; in TEST_P()
922 desc.MipLevels = 1; in TEST_P()
/third_party/ffmpeg/libavutil/
H A Dhwcontext_d3d11va.c207 .MipLevels = 1, in d3d11va_alloc_single()
271 .MipLevels = 1, in d3d11va_frames_init()
361 .MipLevels = 1, in d3d11va_create_staging_texture()
/third_party/mesa3d/src/gallium/winsys/d3d12/wgl/
H A Dd3d12_wgl_framebuffer.cpp208 templ.last_level = res_desc.MipLevels - 1; in d3d12_wgl_framebuffer_get_resource()

Completed in 30 milliseconds

123