About Store Forum Documentation Contact



Post Reply 
D.deviceName() has no result
Author Message
yvanvds Offline
Member

Post: #1
D.deviceName() has no result
Hello again.

I just tried to use D.deviceName() and D.shaderModel() at the start of my program to write some info to a logfile. But to my surprise deviceName returns an empty string, and shaderModel returns SM_UNKNOWN. I am using an Nvidea GeForce 9600 GT gpu.

I suspect the Sci-Fi benchmark demo uses the same functions, so I tried to download that and double check. But the download was imcomplete. (very strange, every time i tried to download it was a few megabytes bigger, but still incomplete.)

Is there anything I should initialize before using these functions?

Regards,

yvan
05-02-2011 01:09 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: D.deviceName() has no result
probably you're calling this in InitPre, try calling this in Init

(I'm uploading the files right now)
05-02-2011 01:11 PM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #3
RE: D.deviceName() has no result
Ah yes, that solves it. Thanks!
05-02-2011 01:58 PM
Find all posts by this user Quote this message in a reply
Post Reply