Home
Forum
Back
Index
New Topic
Search
Wiki
Discord
Presets
Guides
Back
Setting up ReShade
ReShade GUI
Setting up Windows file permissions
Using ReShade with DXVK/...
List of shaders and what they do
Shader Guides
Add-on Guides
Log in
Forum
Shaders & Effects
Discussion
Taking a string as a ui_input uniform
Taking a string as a ui_input uniform
Start
Prev
1
Next
End
1
moriz1
Topic Author
Less
More
7 years 6 months ago
#1
by
moriz1
Taking a string as a ui_input uniform
was created by
moriz1
is it possible to have a string as an input for ui_input? it works fine for numbers and single characters, but i can't use "string" as a type.
Please
Log in
or
Create an account
to join the conversation.
Action
crosire
Less
More
7 years 6 months ago
#2
by
crosire
Replied by
crosire
on topic
Taking a string as a ui_input uniform
What do you mean? How would a string be converted to one of the uniform variable primitive types (bool, int, uint, float)?
Please
Log in
or
Create an account
to join the conversation.
Action
moriz1
Topic Author
Less
More
7 years 6 months ago
#3
by
moriz1
Replied by
moriz1
on topic
Taking a string as a ui_input uniform
in the shader configuration menu, i want to be able to input the name of a file.
Please
Log in
or
Create an account
to join the conversation.
Action
crosire
Less
More
7 years 6 months ago
-
7 years 6 months ago
#4
by
crosire
Replied by
crosire
on topic
Taking a string as a ui_input uniform
You can't use strings in shader code. The only option is to use preprocessor definitions.
Last edit: 7 years 6 months ago by
crosire
.
The following user(s) said Thank You:
moriz1
Please
Log in
or
Create an account
to join the conversation.
Action
Start
Prev
1
Next
End
1
Forum
Shaders & Effects
Discussion
Taking a string as a ui_input uniform
Powered by
Kunena Forum