QmlMaterial 0.1.0
Loading...
Searching...
No Matches
texture_cache.h
1#pragma once
2
3#include <QSGTexture>
4#include <QQuickWindow>
5
6namespace qml_material::sg
7{
8
12QSGTexture* shared_blur_profile_texture(QQuickWindow* win);
13
17QSGTexture* shared_shadow_fadeoff_texture(QQuickWindow* win);
18
19struct CornerCutoutTexture {
20 QSGTexture* texture = nullptr;
21 float margin = 0;
22 float extent = 0;
23 float sigma = 0;
24};
25
28CornerCutoutTexture shared_rrect_corner_cutout_texture(QQuickWindow* win, float sigma,
29 float radius);
30
31} // namespace qml_material::sg