All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
32
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to Graphics and GPU Programming
float max value
Graphics and GPU Programming
Programming
Started by
lomateron
September 22, 2012 04:57 AM
0
comments, last by
clb
11 years, 6 months ago
lomateron
491
Author
September 22, 2012 04:57 AM
In C++ to make a float be the max value, I have to write:
float a =FLT_MAX;
how do I do this in HLSL?
Cancel
Save
Advertisement
clb
2,152
September 22, 2012 06:35 AM
I see FLT_MAX defined to 3.402823466e+38F. Perhaps you can try setting a variable to that value directly?
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
C++ how do you use dependency injection?
For Beginners
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Advertisement
Recommended Tutorials
Producer Consumer Using Double Queues
General and Gameplay Programming
How to find gaming jobs in six seconds
Game Design and Theory
OpenGL 3.3+ Tutorials
Graphics and GPU Programming
Pecha Kucha Night
Event Coverage
Introduction to Game Programming with CUDA
General and Gameplay Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top