Commit graph Crafter.Graphics/interfaces/Crafter.Graphics.cppm
Author SHA1 Message Date
594e1612f7
fix(device): stop requiring samplerAnisotropy, and remove SamplerVulkan, the class it was required for
Device::Initialize counted samplerAnisotropy among the library's own
features because SamplerVulkan turned anisotropic filtering on (#168).
Nothing in this repository has made a SamplerVulkan since 6e94cc6,
which replaced Sponza's with a sampler-heap write. So Initialize
enabled the feature for every application where the GPU had it, and
skipped a GPU without it, for a class this repository no longer used.
Design rule 8 has the library enable only the device features its own
shaders use.

SamplerVulkan: removed. #168's other suggestion keeps it, with
deferred deletion, a clamp to maxSamplerAnisotropy and anisotropy left
to the application. But the VkSampler it makes has no way into the
heap, which takes a sampler's create-info rather than a sampler
object: vkWriteSamplerDescriptorsEXT writes the descriptor straight
from the VkSamplerCreateInfo. In descriptor-set mode the heap makes
each slot's VkSampler itself, in DescriptorHeapVulkan::WriteSamplerSets,
from the same create-info. A class that fitted the heap would hold a
SamplerSlot and that write; a one-call sampler write for code without
a UIRenderer is #177's, which asks for heap-mode writers on
DescriptorHeapVulkan for images, buffers and samplers alike. The
partition leaves project.cpp's ifaces and the umbrella module.

Device: samplerAnisotropy leaves the library's features. No sampler
the library, its tests or its examples make sets anisotropyEnable. An
application that wants anisotropic filtering asks Device::Initialize
for the feature.

Docs: AGENTS.template.md counts 40 partitions and no longer lists
:SamplerVulkan. AGENTS.consumer.md describes samplers as slots written
from a create-info: through UIRenderer::RegisterSampler, or, without a
UIRenderer, through vkWriteSamplerDescriptorsEXT as Sponza does, or
WriteSamplerSets in descriptor-set mode. It says that anisotropyEnable
needs .vulkan10.samplerAnisotropy from the application. The README
names samplerAnisotropy among the features an application asks for.

Tests: FeatureRequests checks, in its main run and in its Vulkan 1.3
child (CRAFTER_GRAPHICS_NO_VULKAN_1_4), that samplerAnisotropy is off
after a Device::Initialize that does not ask for it. With the
requirement put back, the check fails in both, on the RTX 4090 here,
which has the feature.
2026-11-26 09:37:44 +01:00
42a479572d SPDX license update 2026-07-22 18:09:06 +02:00
8347467e1e webgpu improvements 2026-05-24 13:32:08 +02:00
b5d0f52da0 webgpu sponza 2026-05-19 00:27:09 +02:00
5553ded476 webgpu triangle 2026-05-18 18:43:30 +02:00
dedf6b0467 webgpu support 2026-05-18 04:58:52 +02:00
5352ef69a2 browser DOM support 2026-05-18 02:07:48 +02:00
ac2eb7fb0a new input system 2026-05-12 00:24:48 +02:00
c054f1e0b3 update 2026-05-03 02:45:38 +02:00
1f5697326c UI rewrite 3rd attempt 2026-05-02 21:08:20 +02:00
216972e73a new UI system 2026-05-01 23:35:37 +02:00
d29f5609cd fix 2026-04-30 02:05:16 +02:00
177f873639 vulkan UI 2026-04-09 00:15:09 +02:00
f8e142fb06 descriptor heap rewrite 2026-04-05 22:53:59 +02:00
2b22c16ce7 rendertarget multi frame rewrite 2026-03-12 21:13:53 +01:00
789bb307d5 render target improvements 2026-03-10 22:32:50 +01:00
d661c88ee2 cleaned up renderer 2026-03-09 20:10:19 +01:00
d1b8e45fb6 new descriptor layout 2 2026-02-03 21:03:11 +01:00
74832c6824 templated pipeline 2026-01-31 21:08:42 +01:00
5e3a7738ed fixed descriptors 2026-01-29 23:31:56 +01:00
7b24f52764 RT pipeline 2026-01-29 00:45:02 +01:00
9f62233a07 shader 2026-01-28 23:37:12 +01:00
2e11ac6484 improved vulkanbuffer 2026-01-28 18:51:11 +01:00
819517d150 BLAS 2026-01-28 01:07:41 +01:00
cfb43257a0 vulkan window 2026-01-27 22:34:24 +01:00
d0cc3ad16a the great text and type rewrite 2025-12-30 23:28:38 +01:00
8489c57d40 fixes 2025-12-28 00:47:27 +01:00
3d40256bde rendering element rewrite 2025-12-28 00:05:03 +01:00
d7a45e436c grid 2025-11-27 00:27:13 +01:00
a43fd6ac2e split 2025-11-25 20:40:37 +01:00
c3b8761102 actually sensible classes 2025-11-25 20:30:54 +01:00
9bbefbc021 split 2025-11-25 19:54:03 +01:00
e4dda0861c animations 2025-11-24 03:38:20 +01:00
5ff43e240c integer math 2025-11-23 04:04:53 +01:00
4428cfe12c rewrite time 2025-11-22 20:58:42 +01:00
4bb7219ccf semi working wayland 2025-11-17 00:44:45 +01:00
1155e67d63 new structure 2025-11-16 15:32:11 +01:00
Renamed from src/module/Crafter.Graphics.cppm (Browse further)