Search
Setup for Free
S
Silk.NET
•
3y ago
MasterMan
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,790
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
M
MasterMan
OP
•
4/7/23, 12:35 PM
initializing AdapterDesc1 to
"default
" doesn
't fix the error
M
MasterMan
Click to see attachment
T
TechPizza
•
4/7/23, 12:37 PM
is it an
out
out
now
?
T
TechPizza
is it an `out` now?
M
MasterMan
OP
•
4/7/23, 12:38 PM
Also
, similar error
T
TechPizza
•
4/7/23, 12:39 PM
what is the signature of the method
?
T
TechPizza
•
4/7/23, 12:40 PM
you may need adapterDesc
.AsRef
(
)
T
TechPizza
what is the signature of the method?
M
MasterMan
OP
•
4/7/23, 12:42 PM
M
MasterMan
OP
•
4/7/23, 12:42 PM
Yeah
, I assume that structs would need to be converted to ref structs first
T
TechPizza
you may need adapterDesc.AsRef()
M
MasterMan
OP
•
4/7/23, 12:43 PM
This one I can
't find
T
TechPizza
•
4/7/23, 12:43 PM
ok so the problem i see is that the method takes AdapterDesc
, while you are trying with AdapterDesc1
M
MasterMan
OP
•
4/7/23, 12:44 PM
I see now
, apologies
Assumed that the parameters would stay the same
F
fyre
I'm attempting to build a directx renderer, but after setting everything up for ...
F
fyre
•
4/7/23, 4:07 PM
still banging my head against this
V
ViliamOleos
•
4/7/23, 4:40 PM
@baebey
A
Aqua
•
4/7/23, 4:42 PM
intellisense should tell you what the right enum to use is
A
Aqua
intellisense should tell you what the right enum to use is
V
ViliamOleos
•
4/7/23, 4:43 PM
That
's how i typed GLEnum
V
ViliamOleos
•
4/7/23, 4:43 PM
Is it MaterialFace
?
V
ViliamOleos
•
4/7/23, 4:43 PM
and i don
't see an alternative for line
V
ViliamOleos
•
4/7/23, 4:44 PM
lemme test it
V
ViliamOleos
•
4/7/23, 4:44 PM
ah yes
, polygon mode
V
ViliamOleos
•
4/7/23, 4:44 PM
makes sense
A
Aqua
•
4/7/23, 4:45 PM
what was the issue you were even having
A
Aqua
•
4/7/23, 4:46 PM
glPolygonMode has GLEnum overloads
A
Aqua
•
4/7/23, 4:46 PM
and GLEnum has both
FrontAndBack
FrontAndBack
and
Line
Line
F
fyre
still banging my head against this
P
Perksey
•
4/7/23, 4:50 PM
no idea i
'm afraid
, that
's an error that
's designed to be obscure
!
P
Perksey
•
4/7/23, 4:50 PM
try enabling the info queue to see if there
's any extra debug
F
fyre
•
4/7/23, 4:53 PM
I will look into that
, thanks
.
A
Aqua
and GLEnum has both `FrontAndBack` and `Line`
V
ViliamOleos
•
4/7/23, 4:53 PM
Yes
, but it didn
't work for me
no clue
:
/
V
ViliamOleos
@baebey
P
Perksey
•
4/7/23, 5:02 PM
it
's
GLEnum
GLEnum
, not
Enum
Enum
G
gnations
•
4/7/23, 8:29 PM
For creating an SDL window
, do I need the Window structure or a different class
?
G
gnations
•
4/7/23, 8:29 PM
just trying to figure out how to create a window
H
Howie
•
4/7/23, 8:36 PM
Use the Silk
.NET windowing
, it
's great
L
Lyris the Kitori
•
4/7/23, 8:36 PM
as an unbiased party
, i agree
G
gnations
•
4/7/23, 8:37 PM
It
's the same code as in the examples right
?
P
Perksey
•
4/7/23, 8:37 PM
yeah
P
Perksey
•
4/7/23, 8:37 PM
why do you need SDL though
P
Perksey
•
4/7/23, 8:37 PM
it
's designed so you don
't care what it
's using under the hood in 99
% of cases
G
gnations
•
4/7/23, 8:39 PM
Does the underlying API matter with regard to textures
, or are there generic classes for those as well
?
L
Lyris the Kitori
•
4/7/23, 8:40 PM
textures
?
L
Lyris the Kitori
•
4/7/23, 8:41 PM
thats not a concept with windowing
, thats elsewhere in the stack
G
gnations
•
4/7/23, 8:41 PM
right
, just trying to figure out everything that I need
G
gnations
•
4/7/23, 8:42 PM
trying to convert an SDL c
+
+ project at the moment
H
Howie
•
4/7/23, 8:42 PM
What api binding are you targeting
?
G
gnations
•
4/7/23, 8:43 PM
Ideally SDL
H
Howie
•
4/7/23, 8:45 PM
DX12
, Vulkan
? Both
?
L
Lyris the Kitori
•
4/7/23, 8:45 PM
are you using the SDL rendering functionality
G
gnations
•
4/7/23, 9:05 PM
In my original c
+
+ codebase
, yes
.
L
Lyris the Kitori
•
4/7/23, 9:07 PM
in that case you have to use SDL directly
L
Lyris the Kitori
•
4/7/23, 9:07 PM
and you use it the exact same way
G
gnations
•
4/7/23, 9:07 PM
Got it
I
innoxious
•
4/7/23, 9:11 PM
how do I get a context for
Gl.GetApi()
Gl.GetApi()
if I have a GLFW window handle
?
P
Perksey
•
4/7/23, 9:11 PM
you can use
GlfwNativeWindow
GlfwNativeWindow
Next page
FrontAndBack
FrontAndBack
Line
Line
GLEnum
GLEnum
Enum
Enum
Gl.GetApi()
Gl.GetApi()
GlfwNativeWindow
GlfwNativeWindow