Hajime Hoshi
|
590147acda
|
internal/shader: add type checks for the builtin function texture2D
Note that texture2D is usually not called by users.
Closes #2184
|
2022-08-19 02:27:40 +09:00 |
|
Hajime Hoshi
|
63eee0600e
|
internal/shader: add type checks for the builtin function transpose
Updates #2184
|
2022-08-19 01:57:24 +09:00 |
|
Hajime Hoshi
|
7a94cbbd62
|
internal/shader: add refract
Closes #2255
|
2022-08-19 01:48:35 +09:00 |
|
Hajime Hoshi
|
13ae8f5872
|
internal/shader: add type checks for the builtin function faceforward
Updates #2184
|
2022-08-19 01:48:30 +09:00 |
|
Hajime Hoshi
|
73f12fa704
|
internal/shader: add type checks for the builtin function smoothstep
Updates #2184
|
2022-08-19 01:27:01 +09:00 |
|
Hajime Hoshi
|
f3ea274d20
|
internal/shader: add type checks for the builtin function mix
Updates #2184
|
2022-08-19 01:19:20 +09:00 |
|
Hajime Hoshi
|
ec851a85f5
|
internal/shader: add type checks for the builtin function step
Updates #2184
|
2022-08-19 00:25:04 +09:00 |
|
Hajime Hoshi
|
34cc6405dd
|
internal/shader: add type checks for the builtin function clamp
Updates #2184
|
2022-08-19 00:14:38 +09:00 |
|
Hajime Hoshi
|
82a9aac689
|
internal/shader: add type checks for the builtin function cross
Updates #2184
|
2022-08-18 23:45:01 +09:00 |
|
Hajime Hoshi
|
7af6c99954
|
internal/shader: add type checks for some builtin functions
Updates #2184
|
2022-08-18 23:21:25 +09:00 |
|
Hajime Hoshi
|
fb775d806c
|
internal/shader: disallow 'discard' in other functions than the fragment entry point
Closes #2248
|
2022-08-17 23:39:52 +09:00 |
|
Hajime Hoshi
|
b211b79a5c
|
internal/shader: use a return statement in a fragment shader entrypoint
Updates #2247
|
2022-08-17 22:02:13 +09:00 |
|
Hajime Hoshi
|
cf92158e33
|
ebiten: bug fix: add an indirect function call for a fragment shader
Closes #2245
Closes #2247
|
2022-08-17 16:37:37 +09:00 |
|
Hajime Hoshi
|
205245b094
|
internal/shader: implement a new built-in function discard
Closes #1969
|
2022-08-09 11:31:59 +09:00 |
|
mattn
|
2bacecca24
|
fix typos (#2227)
|
2022-08-03 22:40:39 +09:00 |
|
Hajime Hoshi
|
dce34d2306
|
internal/shader: change the naming convention: Num -> Count
|
2022-07-13 02:02:48 +09:00 |
|
Hajime Hoshi
|
4afabe34ae
|
internal/shader: optimization: remove unnecessary local variables
Updates #2034
Updates #2188
|
2022-07-10 19:01:58 +09:00 |
|
Hajime Hoshi
|
b6a340a96f
|
internal/shader: optimization: use a regular return for a function with one output parameter
Updates #2034
Updates #2188
|
2022-07-10 18:18:46 +09:00 |
|
Hajime Hoshi
|
8c879c7bcf
|
internal/shader: refactoring
|
2022-07-10 16:02:50 +09:00 |
|
Hajime Hoshi
|
b2a1b9a9a2
|
internal/shader: bug fix: float constant didn't work with assign operators
|
2022-07-09 22:29:42 +09:00 |
|
Hajime Hoshi
|
c01821ca5c
|
internal/shader: use all functions for vector comparisons
Updates #2186
|
2022-07-09 02:30:16 +09:00 |
|
Hajime Hoshi
|
6dcd2ff11c
|
internal/shader: bug fix: wrong assignment rule for booleans
|
2022-07-08 02:19:42 +09:00 |
|
Hajime Hoshi
|
87be157b23
|
internal/shader: refactoring
|
2022-07-08 01:09:42 +09:00 |
|
Hajime Hoshi
|
a3590cb258
|
internal/shader: add type checks to bool/int/flaot
Updates #2184
|
2022-07-08 00:22:55 +09:00 |
|
Hajime Hoshi
|
faa2ad5c6f
|
internal/shader: add type checks for mat2/mat3/mat4
Updates #2184
|
2022-07-07 23:05:26 +09:00 |
|
Hajime Hoshi
|
f89277fd85
|
internal/shader: add type checks to vec2/vec3/vec4
Updates #2184
|
2022-07-07 00:20:02 +09:00 |
|
Hajime Hoshi
|
5c63c4a4aa
|
internal/graphicsdriver/metal: support macOS 10.12 by removing packed types
From the Metal shading language specification [1] Table 2.2.3, attribute
variables in Ebitengine's vertices don't have to be packed. Then, we can
remove `packed` types.
[1] https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
Closes #2107
|
2022-05-28 23:57:59 +09:00 |
|
Hajime Hoshi
|
853d94c3ef
|
internal/shader: implement strict type checks when calling a function
Closes #2032
|
2022-04-09 00:32:27 +09:00 |
|
Hajime Hoshi
|
15fe7158fd
|
internal/shader: implement strict type checks in assignments
Closes #1972
|
2022-04-09 00:02:20 +09:00 |
|
Hajime Hoshi
|
aef00a5235
|
internal/shader: bug fix: wrong type deduction at (scalar)*(matrix)
Updates #2037
|
2022-03-27 01:22:54 +09:00 |
|
Hajime Hoshi
|
a936ffc032
|
internal/shader: restrict the number of arguments for atan/atan2
|
2022-03-26 19:40:04 +09:00 |
|
Hajime Hoshi
|
d30a31b16c
|
internal/shaderir/hlsl: add function forward declarations
|
2022-03-26 19:10:03 +09:00 |
|
Hajime Hoshi
|
52376170a4
|
internal/shaderir: bug fix: float4x4(x) initialized all the components unexpectedly
See https://docs.microsoft.com/en-us/windows/win32/direct3d9/casting-and-conversion#parameter-value-modifiers
Updates #1007
|
2022-03-26 02:05:35 +09:00 |
|
Hajime Hoshi
|
4893b13acc
|
internal/shaderir: add internal/shaderir/hlsl
Updates #1007
|
2022-03-26 01:31:05 +09:00 |
|
Hajime Hoshi
|
9b1adf799d
|
internal/shader: move syntax tests to internal/shader
|
2022-03-21 19:31:06 +09:00 |
|
Hajime Hoshi
|
a617576879
|
internal/shaderir: replace Mul with ComponentWiseMul and MatrixMul
This is a preparation for DirectX / HLSL.
Updates #1007
|
2022-03-13 19:17:46 +09:00 |
|
Hajime Hoshi
|
6f00221051
|
internal/shaderir/msl: rename the package name
Updates #2010
|
2022-03-10 16:25:11 +09:00 |
|
Hajime Hoshi
|
5f97bdc1d3
|
internal/shader: fix typo
Updates #2011
|
2022-03-10 02:54:32 +09:00 |
|
Hajime Hoshi
|
5614e9d7eb
|
internal/shader: fix misspellings
|
2022-03-10 02:52:44 +09:00 |
|
Hajime Hoshi
|
880dd0682e
|
internal/shader: bug fix: fix some failing tests
|
2022-03-10 02:24:29 +09:00 |
|
Hajime Hoshi
|
d3b72d4ef9
|
internal/shader: add test files
Updates #2011
|
2022-03-10 01:02:51 +09:00 |
|
Hajime Hoshi
|
de05ede27e
|
internal/shader: bug fix: evaluate the builtin float/int functions in the pre-compile phase correctly
Closes #2011
|
2022-03-10 00:47:16 +09:00 |
|
Hajime Hoshi
|
47bfd0db9e
|
internal/shaderir/metal: rename to msl
Closes #2010
|
2022-03-10 00:14:06 +09:00 |
|
Hajime Hoshi
|
84c680c6ed
|
internal/shader: ban the operator div on a matrix
The operator div on a matrix doesn't work on Metal.
|
2022-01-21 03:37:34 +09:00 |
|
Hajime Hoshi
|
2e5b4954f3
|
internal/shader: bug fix: forbid mat + float
mat + float doesn't work on Metal.
|
2022-01-21 02:42:22 +09:00 |
|
Hajime Hoshi
|
99f003a17a
|
internal/shader: bug fix: mat *= vec is not allowed
Updates #1971
|
2022-01-21 02:03:50 +09:00 |
|
Hajime Hoshi
|
0415773b94
|
internal/shader: bug fix: allow the *= operator for a vector and a matrix
Updates #1971
|
2022-01-21 01:59:58 +09:00 |
|
Hajime Hoshi
|
8b8b96c9e7
|
internal/shader: bug fix: wrong test (int*float)
|
2022-01-21 01:31:46 +09:00 |
|
Hajime Hoshi
|
8d2bf6525c
|
internal/shader: bug fix: wrong type checkings for operator *
Updates #1971
|
2022-01-21 01:06:02 +09:00 |
|
Hajime Hoshi
|
0a537b7ad2
|
internal/shader: bug fix: a number literal must be represented as floats in some contexts
|
2022-01-17 21:14:07 +09:00 |
|