Home
last modified time | relevance | path

Searched refs:plat (Results 1 - 16 of 16) sorted by relevance

/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgpu_image_gles.cpp95 void DoSwizzle(const GpuImageDesc& desc, GpuImagePlatformDataGL& plat) in DoSwizzle() argument
97 plat.swizzle.x = MapSwizzle(desc.componentMapping.r, plat.swizzle.x); in DoSwizzle()
98 plat.swizzle.y = MapSwizzle(desc.componentMapping.g, plat.swizzle.y); in DoSwizzle()
99 plat.swizzle.z = MapSwizzle(desc.componentMapping.b, plat.swizzle.z); in DoSwizzle()
100 plat.swizzle.w = MapSwizzle(desc.componentMapping.a, plat.swizzle.w); in DoSwizzle()
103 void GenerateImageStorage(DeviceGLES& device, const GpuImageDesc& desc, GpuImagePlatformDataGL& plat) in GenerateImageStorage() argument
[all...]
H A Dgpu_resource_util_gles.cpp47 GpuBufferPlatformDataGL& plat = const_cast<GpuBufferPlatformDataGL&>(cplat); in DebugBufferNameGLES() local
48 if (plat.buffer) { in DebugBufferNameGLES()
49 glObjectLabel(GL_BUFFER, plat.buffer, (GLsizei)name.length(), name.data()); in DebugBufferNameGLES()
55 const GpuImagePlatformDataGL& plat = (static_cast<const GpuImageGLES&>(image)).GetPlatformData(); in DebugImageNameGLES() local
56 if (plat.image) { in DebugImageNameGLES()
57 glObjectLabel(GL_TEXTURE, plat.image, (GLsizei)name.length(), name.data()); in DebugImageNameGLES()
63 const GpuSamplerPlatformDataGL& plat = (static_cast<const GpuSamplerGLES&>(sampler)).GetPlatformData(); in DebugSamplerNameGLES() local
64 if (plat.sampler) { in DebugSamplerNameGLES()
65 glObjectLabel(GL_SAMPLER, plat.sampler, (GLsizei)name.length(), name.data()); in DebugSamplerNameGLES()
H A Dswapchain_gles.cpp214 DeviceGLES& device, uint32_t count, GLenum colorf, uint32_t sampleCount, SwapchainPlatformDataGL& plat) in GenerateTextures()
223 Math::UVec2 size { plat.swapchainImages.width, plat.swapchainImages.height }; in GenerateTextures()
224 plat.swapchainImages.images.resize(1); // Supports multiple images, see if it helps performance. in GenerateTextures()
226 glGenTextures(static_cast<GLsizei>(plat.swapchainImages.images.size()), plat.swapchainImages.images.data()); in GenerateTextures()
227 for (size_t i = 0; i < plat.swapchainImages.images.size(); i++) { in GenerateTextures()
228 GLuint tid = plat.swapchainImages.images[i]; in GenerateTextures()
246 void GenerateFBO(DeviceGLES& device, SwapchainPlatformDataGL& plat, bool msaa) in GenerateFBO() argument
249 plat in GenerateFBO()
213 GenerateTextures( DeviceGLES& device, uint32_t count, GLenum colorf, uint32_t sampleCount, SwapchainPlatformDataGL& plat) GenerateTextures() argument
[all...]
H A Dnode_context_pool_manager_gles.cpp183 const auto& plat = static_cast<const GpuImagePlatformDataGL&>(color->GetPlatformData()); in IsDefaultAttachment() local
184 if ((plat.image == 0) && // not texture in IsDefaultAttachment()
185 (plat.renderBuffer == 0)) // not renderbuffer in IsDefaultAttachment()
196 PLUGIN_LOG_ONCE_I("backbuffer_depth_gles_mixing" + to_string(plat.image), in IsDefaultAttachment()
216 const GpuImagePlatformDataGL& plat = in IsDefaultResolve() local
218 if ((plat.image == 0) && (plat.renderBuffer == 0)) { in IsDefaultResolve()
228 const GpuImagePlatformDataGL& plat = in IsDefaultResolve() local
230 if ((plat.image == 0) && (plat in IsDefaultResolve()
268 const GpuImagePlatformDataGL& plat = static_cast<const GpuImagePlatformDataGL&>(image.image->GetPlatformData()); BindToFbo() local
319 const GpuImagePlatformDataGL& plat = BindToFboMultisampled() local
[all...]
H A Dgpu_program_gles.cpp61 void ProcessPushConstants(GLuint program, const ShaderModulePlatformDataGLES& plat, GLenum flag, BindMaps& map) in ProcessPushConstants() argument
66 for (auto& info : plat.infos) { in ProcessPushConstants()
86 void ProcessStorageBlocks(GLuint program, const ShaderModulePlatformDataGLES& plat, GLenum flag, const BindMaps& map) in ProcessStorageBlocks() argument
91 for (const auto& t : plat.sbSets) { in ProcessStorageBlocks()
107 void ProcessUniformBlocks(GLuint program, const ShaderModulePlatformDataGLES& plat, GLenum flag, BindMaps& map) in ProcessUniformBlocks() argument
112 for (const auto& t : plat.ubSets) { in ProcessUniformBlocks()
151 void ProcessImageTextures(GLuint program, const ShaderModulePlatformDataGLES& plat, GLenum flag, const BindMaps& map) in ProcessImageTextures() argument
156 for (const auto& t : plat.ciSets) { in ProcessImageTextures()
174 void ProcessCombinedSamplers(GLuint program, const ShaderModulePlatformDataGLES& plat, GLenum flag, BindMaps& map) in ProcessCombinedSamplers() argument
179 for (const auto& t : plat in ProcessCombinedSamplers()
756 const auto& plat = static_cast<const ShaderModulePlatformDataGLES&>(plat_.module_->GetPlatformData()); Specialize() local
[all...]
H A Dgpu_query_gles.cpp40 for (const auto& plat : plats_) { in ~GpuQueryGLES()
41 glDeleteQueries(1, &plat.queryObject); in ~GpuQueryGLES()
H A Dwgl_state.cpp384 auto& plat = swapChain.GetPlatformData(); in SwapBuffers() local
385 ::SwapBuffers(reinterpret_cast<HDC>(plat.surface)); in SwapBuffers()
555 const auto& plat = swapChain->GetPlatformData(); in SetContext() local
556 if (plat.surface == 0) { in SetContext()
565 auto display = reinterpret_cast<HDC>(plat.surface); in SetContext()
573 if (vSync_ != plat.vsync) { in SetContext()
574 vSync_ = plat.vsync; in SetContext()
575 SetSwapInterval(plat.vsync ? 1u : 0u); in SetContext()
H A Degl_state.cpp464 bool IsSrgbSurfaceSupported(const DevicePlatformDataGLES& plat) in IsSrgbSurfaceSupported() argument
467 if (plat.majorVersion > 1u || (plat.majorVersion == 1u && plat.minorVersion >= 5u)) { in IsSrgbSurfaceSupported()
472 return plat.hasColorSpaceExt; in IsSrgbSurfaceSupported()
840 const auto& plat = swapchain->GetPlatformData(); in SetContext() local
843 newContext.drawSurface = (EGLSurface)plat.surface; in SetContext()
844 newContext.readSurface = (EGLSurface)plat.surface; in SetContext()
847 if (vSync_ != plat.vsync) { in SetContext()
848 vSync_ = plat in SetContext()
985 GetSurfaceInformation( const DevicePlatformDataGLES& plat, EGLSurface surface, GlesImplementation::SurfaceInfo& res) const GetSurfaceInformation() argument
[all...]
H A Degl_state.h61 const DevicePlatformDataGLES& plat, EGLSurface surface, GlesImplementation::SurfaceInfo& res) const;
H A Drender_backend_gles.cpp534 const auto& plat = srcGpuBuffer.GetPlatformData(); in SetupBlit() local
535 device_.BindBuffer(GL_PIXEL_UNPACK_BUFFER, plat.buffer); in SetupBlit()
878 auto& plat = const_cast<GpuSemaphorePlatformDataGles&>(gs->GetPlatformData()); in RenderProcessEndCommandLists() local
881 plat.sync = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(sync)); in RenderProcessEndCommandLists()
882 externalSignals[sigIdx].gpuSignalResourceHandle = plat.sync; in RenderProcessEndCommandLists()
1146 const auto& plat = gpuBuffer->GetPlatformData(); in RenderCommandDrawIndirect() local
1147 device_.BindBuffer(GL_DRAW_INDIRECT_BUFFER, plat.buffer); in RenderCommandDrawIndirect()
1204 const auto& plat = gpuBuffer->GetPlatformData(); in RenderCommandDispatchIndirect() local
1205 device_.BindBuffer(GL_DISPATCH_INDIRECT_BUFFER, plat.buffer); in RenderCommandDispatchIndirect()
1646 const auto& plat in RenderCommandBindVertexBuffers() local
1664 const auto& plat = gpuBuffer->GetPlatformData(); RenderCommandBindIndexBuffer() local
1986 const auto& plat = gpuSampler->GetPlatformData(); BindSampler() local
2026 const auto& plat = gpuBuffer->GetPlatformData(); BindBuffer() local
[all...]
H A Ddevice_gles.cpp1315 const auto& plat = static_cast<const DevicePlatformDataGL&>(device->GetPlatformData());
1316 if (plat.context != nullptr) {
1327 const auto& plat = static_cast<const DevicePlatformDataGLES&>(device->GetPlatformData());
1328 if (plat.context != EGL_NO_CONTEXT) {
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_resource_util_vk.cpp62 const GpuBufferPlatformDataVk& plat = (static_cast<const GpuBufferVk&>(buffer)).GetPlatformData(); in DebugBufferNameVk() local
63 if (plat.buffer) { in DebugBufferNameVk()
65 VK_OBJECT_TYPE_BUFFER, VulkanHandleCast<uint64_t>(plat.buffer), name.data() }; in DebugBufferNameVk()
76 const GpuImagePlatformDataVk& plat = static_cast<const GpuImagePlatformDataVk&>(image.GetBasePlatformData()); in DebugImageNameVk() local
77 if (plat.image) { in DebugImageNameVk()
79 VK_OBJECT_TYPE_IMAGE, VulkanHandleCast<uint64_t>(plat.image), name.data() }; in DebugImageNameVk()
82 if (plat.imageView) { in DebugImageNameVk()
84 VK_OBJECT_TYPE_IMAGE_VIEW, VulkanHandleCast<uint64_t>(plat.imageView), name.data() }; in DebugImageNameVk()
87 if (plat.imageViewBase) { in DebugImageNameVk()
89 VK_OBJECT_TYPE_IMAGE_VIEW, VulkanHandleCast<uint64_t>(plat in DebugImageNameVk()
100 const GpuSamplerPlatformDataVk& plat = (static_cast<const GpuSamplerVk&>(sampler)).GetPlatformData(); DebugSamplerNameVk() local
[all...]
H A Dgpu_image_vk.cpp135 void FillImageDescVk(const GpuImageDesc& desc, GpuImagePlatformDataVk& plat) in FillImageDescVk() argument
137 plat.format = static_cast<VkFormat>(desc.format); in FillImageDescVk()
138 plat.aspectFlags = GpuImageUtilsVk::GetImageAspectFlagsFromFormat(plat.format); in FillImageDescVk()
139 plat.usage = static_cast<VkImageUsageFlags>(desc.usageFlags); in FillImageDescVk()
140 plat.extent = { desc.width, desc.height, desc.depth }; in FillImageDescVk()
141 plat.tiling = static_cast<VkImageTiling>(desc.imageTiling); in FillImageDescVk()
142 plat.type = static_cast<VkImageType>(desc.imageType); in FillImageDescVk()
143 plat.samples = static_cast<VkSampleCountFlagBits>(desc.sampleCountFlags); in FillImageDescVk()
144 plat in FillImageDescVk()
[all...]
H A Ddevice_vk.cpp462 vector<string_view> GetPreferredDeviceExtensions(const BackendExtraVk* backendExtra, DevicePlatformDataVk& plat) in GetPreferredDeviceExtensions() argument
479 if (plat.deviceApiMinor >= 1) { // enable only for 1.1+ in GetPreferredDeviceExtensions()
482 if (plat.deviceApiMinor >= 2) { // enable only for 1.2+ in GetPreferredDeviceExtensions()
535 void PreparePhysicalDeviceFeaturesForEnabling(const BackendExtraVk* backendExtra, DevicePlatformDataVk& plat) in PreparePhysicalDeviceFeaturesForEnabling() argument
538 plat.enabledPhysicalDeviceFeatures = plat.physicalDeviceProperties.physicalDeviceFeatures; in PreparePhysicalDeviceFeaturesForEnabling()
540 plat.enabledPhysicalDeviceFeatures.geometryShader = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling()
541 plat.enabledPhysicalDeviceFeatures.tessellationShader = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling()
542 plat.enabledPhysicalDeviceFeatures.sampleRateShading = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling()
543 plat in PreparePhysicalDeviceFeaturesForEnabling()
[all...]
H A Dnode_context_pool_manager_vk.cpp169 const GpuImagePlatformDataVk& plat = image->GetPlatformData(); in CreateFramebuffer() local
171 imageViews[viewIndex] = plat.imageViewBase; in CreateFramebuffer()
172 if ((renderPassData.viewMask > 1u) && (plat.arrayLayers > 1u)) { in CreateFramebuffer()
178 imageViews[viewIndex] = plat.imageView; in CreateFramebuffer()
H A Drender_backend_vk.cpp1179 const PipelineStateObjectPlatformDataVk& plat = pso->GetPlatformData();
1180 pipeline = plat.pipeline;
1181 pipelineLayout = plat.pipelineLayout;
1196 const PipelineStateObjectPlatformDataVk& plat = pso->GetPlatformData();
1197 pipeline = plat.pipeline;
1198 pipelineLayout = plat.pipelineLayout;
1258 const GpuBufferPlatformDataVk& plat = gpuBuffer->GetPlatformData();
1259 const VkBuffer buffer = plat.buffer;
1260 const VkDeviceSize offset = (VkDeviceSize)renderCmd.offset + plat.currentByteOffset;
1301 const GpuBufferPlatformDataVk& plat
[all...]

Completed in 18 milliseconds