Skip to content

Commit

Permalink
remove all remaining references to SamplerGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflinger committed Jan 16, 2025
1 parent 97e7058 commit eac99e5
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 184 deletions.
2 changes: 0 additions & 2 deletions filament/backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ set(SRCS
src/Platform.cpp
src/PlatformFactory.cpp
src/Program.cpp
src/SamplerGroup.cpp
)

set(PRIVATE_HDRS
Expand All @@ -55,7 +54,6 @@ set(PRIVATE_HDRS
include/private/backend/DriverAPI.inc
include/private/backend/HandleAllocator.h
include/private/backend/PlatformFactory.h
include/private/backend/SamplerGroup.h
src/CallbackManager.h
src/CommandStreamDispatcher.h
src/CompilerThreadPool.h
Expand Down
2 changes: 0 additions & 2 deletions filament/backend/include/backend/Handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ struct HwIndexBuffer;
struct HwProgram;
struct HwRenderPrimitive;
struct HwRenderTarget;
struct HwSamplerGroup;
struct HwStream;
struct HwSwapChain;
struct HwTexture;
Expand Down Expand Up @@ -149,7 +148,6 @@ using IndexBufferHandle = Handle<HwIndexBuffer>;
using ProgramHandle = Handle<HwProgram>;
using RenderPrimitiveHandle = Handle<HwRenderPrimitive>;
using RenderTargetHandle = Handle<HwRenderTarget>;
using SamplerGroupHandle = Handle<HwSamplerGroup>;
using StreamHandle = Handle<HwStream>;
using SwapChainHandle = Handle<HwSwapChain>;
using TextureHandle = Handle<HwTexture>;
Expand Down
93 changes: 0 additions & 93 deletions filament/backend/include/private/backend/SamplerGroup.h

This file was deleted.

4 changes: 0 additions & 4 deletions filament/backend/src/DriverBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ struct HwDescriptorSet : public HwBase {
HwDescriptorSet() noexcept = default;
};

struct HwSamplerGroup : public HwBase {
HwSamplerGroup() noexcept = default;
};

struct HwTexture : public HwBase {
uint32_t width{};
uint32_t height{};
Expand Down
1 change: 0 additions & 1 deletion filament/backend/src/Handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ template io::ostream& operator<<(io::ostream& out, const Handle<HwVertexBuffer>&
template io::ostream& operator<<(io::ostream& out, const Handle<HwIndexBuffer>& h) noexcept;
template io::ostream& operator<<(io::ostream& out, const Handle<HwRenderPrimitive>& h) noexcept;
template io::ostream& operator<<(io::ostream& out, const Handle<HwProgram>& h) noexcept;
template io::ostream& operator<<(io::ostream& out, const Handle<HwSamplerGroup>& h) noexcept;
template io::ostream& operator<<(io::ostream& out, const Handle<HwTexture>& h) noexcept;
template io::ostream& operator<<(io::ostream& out, const Handle<HwRenderTarget>& h) noexcept;
template io::ostream& operator<<(io::ostream& out, const Handle<HwFence>& h) noexcept;
Expand Down
68 changes: 0 additions & 68 deletions filament/backend/src/SamplerGroup.cpp

This file was deleted.

1 change: 0 additions & 1 deletion filament/backend/src/metal/MetalDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class MetalPlatform;

class MetalBuffer;
class MetalProgram;
class MetalSamplerGroup;
class MetalTexture;
struct MetalUniformBuffer;
struct MetalContext;
Expand Down
2 changes: 0 additions & 2 deletions filament/backend/src/metal/MetalHandles.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
#include "MetalExternalImage.h"
#include "MetalState.h" // for MetalState::VertexDescription

#include "private/backend/SamplerGroup.h"

#include <backend/DriverEnums.h>

#include <utils/bitset.h>
Expand Down
2 changes: 0 additions & 2 deletions filament/backend/src/vulkan/VulkanDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ Driver* VulkanDriver::create(VulkanPlatform* platform, VulkanContext const& cont
#if 0
// this is useful for development, but too verbose even for debug builds
// For reference on a 64-bits machine in Release mode:
// VulkanSamplerGroup : 16 few
// HwStream : 24 few
// VulkanFence : 32 few
// VulkanProgram : 32 moderate
Expand All @@ -271,7 +270,6 @@ Driver* VulkanDriver::create(VulkanPlatform* platform, VulkanContext const& cont
<< "\nVulkanVertexBuffer: " << sizeof(VulkanVertexBuffer)
<< "\nVulkanVertexBufferInfo: " << sizeof(VulkanVertexBufferInfo)
<< "\nVulkanIndexBuffer: " << sizeof(VulkanIndexBuffer)
<< "\nVulkanSamplerGroup: " << sizeof(VulkanSamplerGroup)
<< "\nVulkanRenderPrimitive: " << sizeof(VulkanRenderPrimitive)
<< "\nVulkanTexture: " << sizeof(VulkanTexture)
<< "\nVulkanTimerQuery: " << sizeof(VulkanTimerQuery)
Expand Down
2 changes: 0 additions & 2 deletions filament/backend/src/vulkan/VulkanDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
namespace filament::backend {

class VulkanPlatform;
struct VulkanSamplerGroup;

// The maximum number of attachments for any renderpass (color + resolve + depth)
constexpr uint8_t MAX_RENDERTARGET_ATTACHMENT_TEXTURES =
Expand Down Expand Up @@ -135,7 +134,6 @@ class VulkanDriver final : public DriverBase {
VulkanFboCache mFramebufferCache;
VulkanSamplerCache mSamplerCache;
VulkanBlitter mBlitter;
VulkanSamplerGroup* mSamplerBindings[MAX_SAMPLER_BINDING_COUNT] = {};
VulkanReadPixels mReadPixels;
VulkanDescriptorSetManager mDescriptorSetManager;

Expand Down
1 change: 0 additions & 1 deletion filament/backend/test/test_MipLevels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ TEST_F(BackendTest, TextureViewLod) {
api.endRenderPass();

// Adjust the base mip to 2.
// Note that this is done without another call to updateSamplerGroup.
auto texture22 = api.createTextureView(texture, 2, 2);

api.updateDescriptorSetTexture(descriptorSet[1], 0, texture22, {
Expand Down
6 changes: 0 additions & 6 deletions filament/src/ds/ColorPassDescriptorSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ class FIndirectLight;
class Froxelizer;
class LightManager;

/*
* PerViewUniforms manages the UBO and samplers needed to render the color passes. Internally it
* holds onto handles for the PER_VIEW UBO and SamplerGroup. This class maintains a shadow copy
* of the UBO/sampler data, so it is possible to partially update it between commits.
*/

class ColorPassDescriptorSet {

using LightManagerInstance = utils::EntityInstance<LightManager>;
Expand Down

0 comments on commit eac99e5

Please sign in to comment.