source: x/lib/glslang.xml@ 6dd695f7

12.1 ken/TL2024 lazarus plabs/newcss python3.11 rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 6dd695f7 was 2ef7106, checked in by Bruce Dubbs <bdubbs@…>, 7 months ago

Update to glslang-14.0.0.

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY glslang-download-http "https://github.com/KhronosGroup/glslang/archive/refs/tags/&glslang-version;/glslang-&glslang-version;.tar.gz">
8 <!ENTITY glslang-download-ftp " ">
9 <!ENTITY glslang-md5sum "bfbf7fb0d18d00306ef229f289a8d593">
10 <!ENTITY glslang-size "3.6 MB">
11 <!ENTITY glslang-buildsize "161 MB (with tests">
12 <!ENTITY glslang-time "0.2 SBU (with parallelism=8; with tests)">
13]>
14
15<sect1 id="glslang" xreflabel="Glslang-&glslang-version;">
16 <?dbhtml filename="glslang.html"?>
17
18 <title>Glslang-&glslang-version;</title>
19
20 <indexterm zone="glslang">
21 <primary sortas="a-glslang">Glslang</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to Glslang</title>
26
27 <para>
28 The <application>Glslang</application> package contains an frontend and
29 validator for OpenGL, OpenGL ES, and Vulkan shaders.
30 </para>
31
32 &lfs120_checked;
33
34 <bridgehead renderas="sect3">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&glslang-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&glslang-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &glslang-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &glslang-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &glslang-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &glslang-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Glslang Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
71 <para role="required">
72 <xref linkend="cmake"/> and
73 <xref linkend="spirv-tools"/>
74 </para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of Glslang</title>
80
81 <para>
82 Install <application>Glslang</application> by running the following
83 commands:
84 </para>
85
86<screen><userinput>mkdir build &amp;&amp;
87cd build &amp;&amp;
88
89cmake -DCMAKE_INSTALL_PREFIX=/usr \
90 -DCMAKE_BUILD_TYPE=Release \
91 -DALLOW_EXTERNAL_SPIRV_TOOLS=ON \
92 -DBUILD_SHARED_LIBS=ON \
93 -DGLSLANG_TESTS=ON \
94 -G Ninja .. &amp;&amp;
95ninja</userinput></screen>
96
97 <para>
98 To test the results, issue: <command>ninja test</command>.
99 </para>
100
101 <para>
102 Now, as the &root; user:
103 </para>
104
105<screen role="root"><userinput>ninja install</userinput></screen>
106
107 </sect2>
108
109 <sect2 role="commands">
110 <title>Command Explanations</title>
111
112 <para>
113 <parameter>-DALLOW_EXTERNAL_SPIRV_TOOLS=ON</parameter>: This switch allows
114 the build system to use the system-installed copy of
115 <xref linkend="spirv-tools" role="nodep"/>, instead of downloading and
116 installing it's own copy.
117 </para>
118
119 <para>
120 <parameter>-DBUILD_SHARED_LIBS=ON</parameter>: This switch builds shared
121 versions of the libraries, and does not install static versions of them.
122 </para>
123
124 <para>
125 <parameter>-DGLSLANG_TESTS=ON</parameter>: This switch builds the
126 tests for the package.
127 </para>
128
129 </sect2>
130
131 <sect2 role="content">
132 <title>Contents</title>
133
134 <segmentedlist>
135 <segtitle>Installed Programs</segtitle>
136 <segtitle>Installed Libraries</segtitle>
137 <segtitle>Installed Directories</segtitle>
138
139 <seglistitem>
140 <seg>
141 glslang,
142 glslang-validator (symlink to glslang), and
143 spirv-remap
144 </seg>
145 <seg>
146 libglslang.so,
147 libglslang-default-resource-limits.so,
148 libHLSL.so,
149 libSPIRV.so, and
150 libSPVRemapper.so
151 </seg>
152 <seg>
153 /usr/include/glslang and
154 /usr/lib/cmake/glslang
155 </seg>
156 </seglistitem>
157 </segmentedlist>
158
159 <variablelist>
160 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
161 <?dbfo list-presentation="list"?>
162 <?dbhtml list-presentation="table"?>
163
164 <!-- If the program or library name conflicts with (is the same as) the
165 package name, add -prog or -lib to the varlistentry entity id
166 and the 2nd entry of the indexterm zone entity -->
167
168 <varlistentry id="glslang-prog">
169 <term><command>glslang</command></term>
170 <listitem>
171 <para>
172 provides a front end and validator for OpenGL, OpenGL ES, and
173 Vulkan shaders
174 </para>
175 <indexterm zone="glslang glslang-prog">
176 <primary sortas="b-glslang">glslang</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="libglslang">
182 <term><filename class="libraryfile">libglslang.so</filename></term>
183 <listitem>
184 <para>
185 contains functions that provide a front-end and validator for
186 OpenGL, OpenGL ES, and Vulkan shaders to other programs
187 </para>
188 <indexterm zone="glslang libglslang">
189 <primary sortas="c-libglslang">libglslang.so</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="libHLSL">
195 <term><filename class="libraryfile">libHLSL.so</filename></term>
196 <listitem>
197 <para>
198 provides a front-end for shaders that are in HLSL format
199 </para>
200 <indexterm zone="glslang libHLSL">
201 <primary sortas="c-libHLSL">libHLSL.so</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="libSPIRV">
207 <term><filename class="libraryfile">libSPIRV.so</filename></term>
208 <listitem>
209 <para>
210 provides a front-end and generator for SPIR-V binaries
211 </para>
212 <indexterm zone="glslang libSPIRV">
213 <primary sortas="c-libSPIRV">libSPIRV.so</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="libSPVRemapper">
219 <term><filename class="libraryfile">libSPVRemapper.so</filename></term>
220 <listitem>
221 <para>
222 provides a remapper for SPIR-V binaries
223 </para>
224 <indexterm zone="glslang libSPVRemapper">
225 <primary sortas="c-libSPVRemapper">libSPVRemapper.so</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 </variablelist>
231 </sect2>
232</sect1>
Note: See TracBrowser for help on using the repository browser.