Skip to content

Commit b0ad370

Browse files
committed
Release version 0.0.2.
1 parent 3fcca87 commit b0ad370

6 files changed

Lines changed: 20 additions & 51 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: "Checkout"
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313

1414
- name: "gpu"
1515
uses: k-paxian/dart-package-publisher@master

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.2
2+
3+
- Load `ShaderLibrary` utility method.
4+
15
## 0.0.1
26

37
- Initial version.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Mahdi K. Fard
3+
Copyright (c) 2024-2026 Mahdi K. Fard
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/gpu.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
/// A Calculator.
2-
class Calculator {
3-
/// Returns [value] plus 1.
4-
int addOne(int value) => value + 1;
1+
import "package:flutter_gpu/gpu.dart" as gpu;
2+
3+
gpu.PixelFormat get defaultColorFormat => gpu.gpuContext.defaultColorFormat;
4+
5+
gpu.ShaderLibrary loadShaderLibrary(String assetName) {
6+
return gpu.ShaderLibrary.fromAsset(assetName)!;
57
}

pubspec.yaml

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: gpu
2-
description: "Game Engine with 3D feaures for Flutter using Impeller."
3-
version: 0.0.1
2+
description: "Game Engine with 3D feaures for Flutter using Impeller and GPGPU for Flutter."
3+
version: 0.0.2
44
repository: https://github.com/xclud/flutter_gpu
55

66
environment:
@@ -16,41 +16,6 @@ dependencies:
1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
19-
flutter_lints: ^5.0.0
19+
flutter_lints: ^6.0.0
2020

21-
# For information on the generic Dart part of this file, see the
22-
# following page: https://dart.dev/tools/pub/pubspec
23-
24-
# The following section is specific to Flutter packages.
2521
flutter:
26-
27-
# To add assets to your package, add an assets section, like this:
28-
# assets:
29-
# - images/a_dot_burr.jpeg
30-
# - images/a_dot_ham.jpeg
31-
#
32-
# For details regarding assets in packages, see
33-
# https://flutter.dev/to/asset-from-package
34-
#
35-
# An image asset can refer to one or more resolution-specific "variants", see
36-
# https://flutter.dev/to/resolution-aware-images
37-
38-
# To add custom fonts to your package, add a fonts section here,
39-
# in this "flutter" section. Each entry in this list should have a
40-
# "family" key with the font family name, and a "fonts" key with a
41-
# list giving the asset and other descriptors for the font. For
42-
# example:
43-
# fonts:
44-
# - family: Schyler
45-
# fonts:
46-
# - asset: fonts/Schyler-Regular.ttf
47-
# - asset: fonts/Schyler-Italic.ttf
48-
# style: italic
49-
# - family: Trajan Pro
50-
# fonts:
51-
# - asset: fonts/TrajanPro.ttf
52-
# - asset: fonts/TrajanPro_Bold.ttf
53-
# weight: 700
54-
#
55-
# For details regarding fonts in packages, see
56-
# https://flutter.dev/to/font-from-package

test/gpu_test.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import 'package:flutter_test/flutter_test.dart';
2-
3-
import 'package:gpu/gpu.dart';
2+
import "package:flutter_gpu/gpu.dart" as gpu;
43

54
void main() {
6-
test('adds one to input values', () {
7-
final calculator = Calculator();
8-
expect(calculator.addOne(2), 3);
9-
expect(calculator.addOne(-7), -6);
10-
expect(calculator.addOne(0), 1);
5+
test('Checks default color format.', () {
6+
final x = gpu.BlendOperation.add;
7+
8+
expect(x, gpu.BlendOperation.add);
119
});
1210
}

0 commit comments

Comments
 (0)