Home
last modified time | relevance | path

Searched refs:plat_ (Results 1 - 25 of 49) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgpu_buffer_gles.cpp74 : device_((DeviceGLES&)device), plat_({ {}, 0u, 0u, desc.byteSize, 0u, desc.byteSize }), desc_(desc), in GpuBufferGLES()
81 glGenBuffers(1, &plat_.buffer);
88 plat_.alignedBindByteSize = ((plat_.bindMemoryByteSize + (minAlignment - 1)) / minAlignment) * minAlignment;
89 plat_.alignedByteSize = plat_.alignedBindByteSize;
93 plat_.alignedByteSize *= device_.GetCommandBufferingCount();
97 device_.BindBuffer(INIT_TARGET, plat_.buffer);
102 glBufferStorageEXT(INIT_TARGET, static_cast<GLsizeiptr>(plat_.alignedByteSize), nullptr, flags);
107 glMapBufferRange(INIT_TARGET, 0, static_cast<GLsizeiptr>(plat_
[all...]
H A Dgpu_image_gles.cpp173 plat_ = GetPlatformData(device_, desc_.format); in GpuImageGLES()
178 plat_ = GetPlatformData(device_, BASE_FORMAT_R16G16B16A16_SFLOAT); in GpuImageGLES()
192 glGenRenderbuffers(1, &plat_.renderBuffer); in GpuImageGLES()
194 if (plat_.renderBuffer) { in GpuImageGLES()
195 PLUGIN_LOG_D("gpu renderbuffer id >: %u", plat_.renderBuffer); in GpuImageGLES()
198 glBindRenderbuffer(GL_RENDERBUFFER, plat_.renderBuffer); in GpuImageGLES()
206 glRenderbufferStorageMultisampleEXT(GL_RENDERBUFFER, (GLsizei)sampleCount, plat_.internalFormat, in GpuImageGLES()
209 glRenderbufferStorageMultisample(GL_RENDERBUFFER, (GLsizei)sampleCount, plat_.internalFormat, in GpuImageGLES()
213 glRenderbufferStorageMultisample(GL_RENDERBUFFER, (GLsizei)sampleCount, plat_.internalFormat, in GpuImageGLES()
217 glRenderbufferStorage(GL_RENDERBUFFER, plat_ in GpuImageGLES()
[all...]
H A Dgpu_sampler_gles.cpp65 glGenSamplers(1, &plat_.sampler); in GpuSamplerGLES()
66 glSamplerParameteri(plat_.sampler, GL_TEXTURE_MAG_FILTER, magFilter[desc.magFilter]); in GpuSamplerGLES()
68 glSamplerParameteri(plat_.sampler, GL_TEXTURE_MIN_FILTER, minFilter[desc.minFilter + desc.mipMapMode * 2]); in GpuSamplerGLES()
70 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_S, addressMode[desc.addressModeU]); in GpuSamplerGLES()
71 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_T, addressMode[desc.addressModeV]); in GpuSamplerGLES()
72 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_R, addressMode[desc.addressModeW]); in GpuSamplerGLES()
77 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE); in GpuSamplerGLES()
78 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_FUNC, compareMode[desc.compareOp]); in GpuSamplerGLES()
80 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_MODE, GL_NONE); in GpuSamplerGLES()
81 glSamplerParameteri(plat_ in GpuSamplerGLES()
[all...]
H A Dpipeline_state_object_gles.cpp159 plat_.graphicsState = graphicsState; in GraphicsPipelineStateObjectGLES()
160 plat_.pipelineLayout = pipelineLayout; in GraphicsPipelineStateObjectGLES()
162 plat_.vertexInputDeclaration.attributeDescriptions[plat_.vertexInputDeclaration.attributeDescriptionCount] = t; in GraphicsPipelineStateObjectGLES()
163 plat_.vertexInputDeclaration.attributeDescriptionCount++; in GraphicsPipelineStateObjectGLES()
166 plat_.vertexInputDeclaration.bindingDescriptions[plat_.vertexInputDeclaration.bindingDescriptionCount] = t; in GraphicsPipelineStateObjectGLES()
167 plat_.vertexInputDeclaration.bindingDescriptionCount++; in GraphicsPipelineStateObjectGLES()
169 plat_.renderPassDesc = renderPassDesc; in GraphicsPipelineStateObjectGLES()
170 plat_ in GraphicsPipelineStateObjectGLES()
[all...]
H A Dgpu_semaphore_gles.cpp37 plat_.sync = handle; in GpuSemaphoreGles()
43 if (ownsResources_ && plat_.sync) { in ~GpuSemaphoreGles()
45 GLsync sync = reinterpret_cast<GLsync>(plat_.sync); in ~GpuSemaphoreGles()
48 plat_.sync = 0; in ~GpuSemaphoreGles()
53 return plat_.sync; in GetHandle()
58 return plat_; in GetPlatformData()
H A Degl_state.cpp480 if (plat_.minorVersion > 4) { in HandleExtensions()
487 dextensions_ = eglQueryString(plat_.display, EGL_EXTENSIONS); in HandleExtensions()
495 return plat_.majorVersion; in MajorVersion()
500 return plat_.minorVersion; in MinorVersion()
546 eglChooseConfig(plat_.display, attributes.data(), &plat_.config, 1, &num_configs); in ChooseConfiguration()
550 DumpEGLConfig(plat_.display, plat_.config); in ChooseConfiguration()
591 plat_.context = eglCreateContext(plat_ in CreateContext()
[all...]
H A Dwgl_state.cpp372 configId = GetPixelFormat(plat_.display); in GetSurfaceInformation()
375 DescribePixelFormat(plat_.display, configId, sizeof(pfd), &pfd); in GetSurfaceInformation()
410 return plat_.context != nullptr; in IsValid()
426 plat_.mhWnd = backendConfig->window; in CreateContext()
432 if (!plat_.mhWnd) { in CreateContext()
433 plat_.mhWnd = GetActiveWindow(); in CreateContext()
435 plat_.display = GetDC(plat_.mhWnd); in CreateContext()
437 extensions_ = wglGetExtensionsStringARB(plat_.display); in CreateContext()
482 const int pixelFormat = ChoosePixelFormat(plat_ in CreateContext()
[all...]
H A Dgpu_program_gles.cpp533 if (plat_.program) {
535 device_.ReleaseProgram(plat_.program);
545 plat_.vertShaderModule_ = static_cast<const ShaderModuleGLES*>(createData.vertShaderModule);
546 plat_.fragShaderModule_ = static_cast<const ShaderModuleGLES*>(createData.fragShaderModule);
549 pipelineLayout = plat_.vertShaderModule_->GetPipelineLayout();
550 const auto& sscv = plat_.vertShaderModule_->GetSpecilization();
554 const auto& vidv = plat_.vertShaderModule_->GetVertexInputDeclaration();
557 const auto& reflPl = plat_.fragShaderModule_->GetPipelineLayout();
561 const auto& fsscv = plat_.fragShaderModule_->GetSpecilization();
577 const GLuint program = static_cast<GLuint>(ret.plat_
[all...]
H A Dswapchain_gles.cpp276 plat_.surface = in SwapchainGLES()
280 plat_.surface = (uintptr_t)swapchainCreateInfo.surfaceHandle; in SwapchainGLES()
285 GlesImplementation::SurfaceInfo info = ExtractInfo(device_, plat_.surface); in SwapchainGLES()
292 plat_.swapchainImageIndex = 0; in SwapchainGLES()
293 plat_.vsync = (flags_ & SwapchainFlagBits::CORE_SWAPCHAIN_VSYNC_BIT); in SwapchainGLES()
294 plat_.swapchainImages.width = info.width; in SwapchainGLES()
295 plat_.swapchainImages.height = info.height; in SwapchainGLES()
300 GenerateTextures(device_, 1, FormatToGlFormat(colorFormat), info.samples, plat_); in SwapchainGLES()
301 GenerateFBO(device_, plat_, (info.samples > 1)); in SwapchainGLES()
306 plat_ in SwapchainGLES()
[all...]
H A Dshader_module_gles.cpp48 void CollectRes(const PipelineLayout& pipeline, ShaderModulePlatformDataGLES& plat_) in CollectRes() argument
64 Collect(set.set, binding, plat_.cbSets); in CollectRes()
70 Collect(set.set, binding, plat_.ciSets); in CollectRes()
77 Collect(set.set, binding, plat_.ubSets); in CollectRes()
80 Collect(set.set, binding, plat_.sbSets); in CollectRes()
87 Collect(set.set, binding, plat_.siSets); in CollectRes()
101 plat_.combSets.push_back({ sBinding.set, sBinding.bind, iBinding.set, iBinding.bind, string { name } }); in CollectRes()
200 me.plat_.infos.push_back(move(refl)); in ProcessShaderModule()
206 CollectRes(me.pipelineLayout_, me.plat_); in ProcessShaderModule()
247 return plat_; in GetPlatformData()
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_image_vk.cpp193 FillImageDescVk(desc_, plat_); in GpuImageVk()
194 if (plat_.aspectFlags & VK_IMAGE_ASPECT_DEPTH_BIT) { in GpuImageVk()
197 plat_.format = static_cast<VkFormat>(desc_.format); in GpuImageVk()
198 plat_.aspectFlags = GpuImageUtilsVk::GetImageAspectFlagsFromFormat(plat_.format); in GpuImageVk()
206 if ((desc_.usageFlags & IMAGE_VIEW_USAGE_FLAGS) && plat_.image) { in GpuImageVk()
207 CreateVkImageViews(plat_.aspectFlags, nullptr); in GpuImageVk()
215 PLUGIN_LOG_E("gpu image id >: 0x%" PRIxPTR, (uintptr_t)plat_.image); in GpuImageVk()
221 : device_(device), plat_((const GpuImagePlatformDataVk&)platformData), in GpuImageVk()
225 if (!plat_ in GpuImageVk()
[all...]
H A Dgpu_semaphore_vk.cpp41 &plat_.semaphore)); // pSemaphore in GpuSemaphoreVk()
49 plat_.semaphore = VulkanHandleCast<VkSemaphore>(handle); in GpuSemaphoreVk()
55 if (ownsResources_ && plat_.semaphore) { in ~GpuSemaphoreVk()
59 plat_.semaphore, // semaphore in ~GpuSemaphoreVk()
62 plat_.semaphore = VK_NULL_HANDLE; in ~GpuSemaphoreVk()
67 return VulkanHandleCast<uint64_t>(plat_.semaphore); in GetHandle()
72 return plat_; in GetPlatformData()
H A Dgpu_buffer_vk.cpp114 platAccel_.buffer = plat_.buffer; in GpuBufferVk()
115 platAccel_.byteSize = plat_.fullByteSize; in GpuBufferVk()
124 plat_.buffer, // buffer in GpuBufferVk()
175 gpuMemAllocator->DestroyBuffer(plat_.buffer, mem_.allocation); in ~GpuBufferVk()
177 RecordAllocation(*gpuMemAllocator, desc_, -static_cast<int64_t>(plat_.fullByteSize)); in ~GpuBufferVk()
181 PLUGIN_LOG_E("gpu buffer id <: 0x%" PRIxPTR, (uintptr_t)plat_.buffer); in ~GpuBufferVk()
201 plat_.bindMemoryByteSize = GetAlignedByteSize(desc_.byteSize, Math::max(minBufferAlignment, minMapAlignment)); in CreateBufferImpl()
202 plat_.fullByteSize = plat_.bindMemoryByteSize * bufferingCount_; in CreateBufferImpl()
203 plat_ in CreateBufferImpl()
[all...]
H A Ddevice_vk.cpp617 const auto availableQueues = CreateFunctionsVk::GetAvailableQueues(plat_.physicalDevice, queueProperties);
636 CheckValidDepthFormats(plat_, platInternal_);
637 FillFormatSupport(plat_.physicalDevice, formatProperties_);
653 plat_.instance, plat_.physicalDevice, plat_.device, allocatorCreateInfo);
682 if (plat_.pipelineCache) { in ~DeviceVk()
683 CreateFunctionsVk::DestroyPipelineCache(plat_.device, plat_.pipelineCache); in ~DeviceVk()
687 CreateFunctionsVk::DestroyDevice(plat_ in ~DeviceVk()
[all...]
H A Dswapchain_vk.cpp278 plat_.swapchainImages.width = swapchainExtent.width; in SwapchainVk()
279 plat_.swapchainImages.height = swapchainExtent.height; in SwapchainVk()
326 VALIDATE_VK_RESULT(vkCreateSwapchainKHR(vkDevice, &vkSwapchainCreateInfo, nullptr, &plat_.swapchain)); in SwapchainVk()
331 plat_.swapchain, // swapchain in SwapchainVk()
337 plat_.swapchainImages.images.resize(realImageCount); in SwapchainVk()
338 plat_.swapchainImages.imageViews.resize(realImageCount); in SwapchainVk()
339 plat_.swapchainImages.semaphores.resize(realImageCount); in SwapchainVk()
342 plat_.swapchain, // swapchain in SwapchainVk()
344 plat_.swapchainImages.images.data())); // pSwapchainImages in SwapchainVk()
366 for (uint32_t idx = 0; idx < plat_ in SwapchainVk()
[all...]
H A Dgpu_program_vk.cpp53 plat_.vert = ((const ShaderModulePlatformDataVk&)mod.GetPlatformData()).shaderModule; in GpuShaderProgramVk()
66 plat_.frag = ((const ShaderModulePlatformDataVk&)mod.GetPlatformData()).shaderModule; in GpuShaderProgramVk()
84 return plat_; in GetPlatformData()
101 plat_.comp = ((const ShaderModulePlatformDataVk&)mod.GetPlatformData()).shaderModule; in GpuComputeProgramVk()
120 return plat_; in GetPlatformData()
H A Dshader_module_vk.cpp102 plat_.shaderModule = CreateShaderModule(vkDevice, createInfo.spvData); in ShaderModuleVk()
111 if (plat_.shaderModule != VK_NULL_HANDLE) { in ~ShaderModuleVk()
113 plat_.shaderModule, // shaderModule in ~ShaderModuleVk()
125 return plat_; in GetPlatformData()
H A Dgpu_sampler_vk.cpp84 &plat_.sampler)); // pSampler in GpuSamplerVk()
89 &plat_.sampler)); // pSampler in GpuSamplerVk()
104 plat_.sampler, // sampler in ~GpuSamplerVk()
115 return plat_; in GetPlatformData()
H A Dpipeline_state_object_vk.cpp424 &plat_.pipelineLayout)); // pPipelineLayout in GraphicsPipelineStateObjectVk()
489 plat_.pipelineLayout, // layout in GraphicsPipelineStateObjectVk()
501 &plat_.pipeline)); // pPipelines in GraphicsPipelineStateObjectVk()
517 if (plat_.pipeline) { in ~GraphicsPipelineStateObjectVk()
519 plat_.pipeline, // pipeline in ~GraphicsPipelineStateObjectVk()
522 if (plat_.pipelineLayout) { in ~GraphicsPipelineStateObjectVk()
524 plat_.pipelineLayout, // pipelineLayout in ~GraphicsPipelineStateObjectVk()
531 return plat_; in GetPlatformData()
598 &plat_.pipelineLayout)); // pPipelineLayout in ComputePipelineStateObjectVk()
606 plat_ in ComputePipelineStateObjectVk()
[all...]
H A Dpipeline_state_object_vk.h56 PipelineStateObjectPlatformDataVk plat_; member in final
71 PipelineStateObjectPlatformDataVk plat_; member in final
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/
H A Dplatform_ohos.cpp28 plat_.coreRootPath = createInfo.coreRootPath; in PlatformOHOS()
29 plat_.appRootPath = createInfo.appRootPath; in PlatformOHOS()
30 plat_.appPluginPath = createInfo.appPluginPath; in PlatformOHOS()
31 plat_.hapPath = createInfo.hapPath; in PlatformOHOS()
32 plat_.bundleName = createInfo.bundleName; in PlatformOHOS()
33 plat_.moduleName = createInfo.moduleName; in PlatformOHOS()
39 BASE_NS::string hapPath = plat_.hapPath; in RegisterDefaultPaths()
40 BASE_NS::string bundleName = plat_.bundleName; in RegisterDefaultPaths()
41 BASE_NS::string moduleName = plat_.moduleName; in RegisterDefaultPaths()
46 const BASE_NS::string coreDirectory = "file://" + plat_ in RegisterDefaultPaths()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/mac/
H A Dplatform_mac.cpp72 plat_.coreRootPath = fixPath(createInfo.coreRootPath); in PlatformMac()
73 plat_.appRootPath = fixPath(createInfo.appRootPath); in PlatformMac()
74 plat_.appPluginPath = fixPath(createInfo.appPluginPath); in PlatformMac()
79 return plat_; in GetPlatformData()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/linux/
H A Dplatform_linux.cpp72 plat_.coreRootPath = fixPath(createInfo.coreRootPath); in PlatformLinux()
73 plat_.appRootPath = fixPath(createInfo.appRootPath); in PlatformLinux()
74 plat_.appPluginPath = fixPath(createInfo.appPluginPath); in PlatformLinux()
79 return plat_; in GetPlatformData()
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ohos/
H A Dplatform_device_vk.cpp27 plat_.instance, "vkGetNativeBufferPropertiesOHOS"); in CreatePlatformExtFunctions()
32 (PFN_vkGetMemoryNativeBufferOHOS)vkGetInstanceProcAddr(plat_.instance, "vkGetMemoryNativeBufferOHOS"); in CreatePlatformExtFunctions()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/windows/
H A Dplatform_windows.cpp92 plat_.coreRootPath = fixPath(createInfo.coreRootPath); in PlatformWindows()
93 plat_.appRootPath = fixPath(createInfo.appRootPath); in PlatformWindows()
94 plat_.appPluginPath = fixPath(createInfo.appPluginPath); in PlatformWindows()
99 return plat_; in GetPlatformData()

Completed in 13 milliseconds

12