Skip to content

Commit

Permalink
Merge pull request #320 from ninjamike1211/main
Browse files Browse the repository at this point in the history
feat: 1.8 beta changes
  • Loading branch information
ninjamike1211 authored Aug 23, 2024
2 parents 7e92a21 + 0a105f8 commit 570260b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/content/docs/reference/Macros/GPU_Hardware.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Based on the current GPU hardware model, one of the following macros will be def
- `MC_GL_RENDERER_INTEL`
- `MC_GL_RENDERER_GALLIUM`
- `MC_GL_RENDERER_MESA`
- `MC_GL_RENDERER_APPLE` (currently only in Iris 1.8 beta)
- `MC_GL_RENDERER_OTHER`
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: IRIS_HAS_TRANSLUCENCY_SORTING
description: Defined if current Sodium supports translucency sorting.
sidebar:
label: IRIS_HAS_TRANSLUCENCY_SORTING
order: 1
badge:
text: Iris 1.8 Beta
variant: caution
---

### `IRIS_HAS_TRANSLUCENCY_SORTING`

This macro is defined if the currently loaded version of Sodium supports translucency sorting (Sodium 0.6 and greater).
10 changes: 9 additions & 1 deletion src/content/docs/reference/Macros/IRIS_TAG_SUPPORT.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@ sidebar:

### `IRIS_TAG_SUPPORT`

This macro is defined if the version of Iris supports tags for defining block IDs in [`block.properties`](/reference/miscellaneous/block_properties).
This macro is defined if the version of Iris supports tags for defining block IDs in [`block.properties`](/reference/miscellaneous/block_properties).

Prior to Iris 1.8 the lines in [`block.properties`](/reference/miscellaneous/block_properties) took priority based on the order in the file. For Iris 1.8 and later, individual entires always take priority over tags, regardless of their order. For Iris versions with this change, `IRIS_TAG_SUPPORT` is defined as `2` and can be checked in [`block.properties`](/reference/miscellaneous/block_properties) like so:

```glsl
#if IRIS_TAG_SUPPORT == 2
...
#endif
```
19 changes: 19 additions & 0 deletions src/content/docs/reference/Macros/IRIS_VERSION.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: IRIS_VERSION
description: The current Iris version.
sidebar:
label: IRIS_VERSION
order: 1
badge:
text: Iris 1.8 Beta
variant: caution
---

### `IRIS_VERSION`

The current Iris version, encoded in a 122 format (1 major, 2 minor, 2 release).

For example:
- 1.5.0 -> 10500
- 1.6.17 -> 10617
- 1.7.3 -> 10703

0 comments on commit 570260b

Please sign in to comment.