Search
Get Started
S
Silk.NET
•
4y ago
TechPizza
ah yes. _gd.Vk.callwhatever, no thanks
ah yes
.
_gd
.Vk
.callwhatever
, no thanks
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,747
Members
View on Discord
Was this page helpful?
Yes
No
T
TechPizza
ah yes. _gd.Vk.callwhatever, no thanks
R
Redhacker2
•
2/26/22, 1:35 PM
I mean
.
.
. you have to have some form of class to access it
, you could I guess wrap the instance into a static class that would hide the API instance I guess
?
R
Redhacker2
•
2/26/22, 1:35 PM
but thats about the best you can do
T
TechPizza
OP
•
2/26/22, 1:35 PM
no thanks i
'll just use a static import of terrafx
R
Redhacker2
•
2/26/22, 1:35 PM
I
.
.
.
R
Redhacker2
•
2/26/22, 1:36 PM
GL has the same thing you know
?
R
Redhacker2
•
2/26/22, 1:36 PM
at least for silk
T
TechPizza
OP
•
2/26/22, 1:36 PM
what
?
R
Redhacker2
•
2/26/22, 1:37 PM
You have a GL object you have to carry around IIRC
T
TechPizza
OP
•
2/26/22, 1:37 PM
yes
.
.
. why did you bring that up
? i specifically want to avoid such a class
R
Redhacker2
•
2/26/22, 1:38 PM
Then
.
.
. idk use C
?
R
Redhacker2
•
2/26/22, 1:38 PM
no but seriously
T
TechPizza
OP
•
2/26/22, 1:38 PM
R
Redhacker2
•
2/26/22, 1:38 PM
I dont think you can avoid such a class in it
's entirety
L
Lyris the Kitori
•
2/26/22, 1:38 PM
you kinda can tho
L
Lyris the Kitori
•
2/26/22, 1:38 PM
GL can be static
L
Lyris the Kitori
•
2/26/22, 1:38 PM
and should
D
dfkeenan🍍🍕
•
2/26/22, 1:38 PM
an idea i conetmplated was generate extensiton methods for the
to all the vk methods
, well applicable ones
R
Redhacker2
I dont think you can avoid such a class in it's entirety
T
TechPizza
OP
•
2/26/22, 1:39 PM
simple and effective
T
TechPizza
simple and effective
R
Redhacker2
•
2/26/22, 1:40 PM
That is pretty terrible tho
.
.
.
. whatever
R
Redhacker2
•
2/26/22, 1:40 PM
yiu do you
T
TechPizza
OP
•
2/26/22, 1:40 PM
i think you just offended everyone who uses vulkan in other languages
R
Redhacker2
•
2/26/22, 1:41 PM
probably
R
Redhacker2
•
2/26/22, 1:41 PM
but TBH
, I dont really care
T
TechPizza
OP
•
2/26/22, 1:42 PM
i
'm on team tanner
; map as closely to native as possible
R
Redhacker2
•
2/26/22, 1:42 PM
not exactly sure what that has to do with anything
?
T
TechPizza
OP
•
2/26/22, 1:42 PM
.
.
. the conversation about mappings
?
R
Redhacker2
•
2/26/22, 1:43 PM
Ultimately you are still calling
R
Redhacker2
•
2/26/22, 1:43 PM
static using or not
P
Perksey
•
2/26/22, 1:45 PM
TerraFX just delegates to the Vulkan loader to keep the static dispatch table state
P
Perksey
•
2/26/22, 1:45 PM
we on the other hand do not want to hide state from the user
P
Perksey
•
2/26/22, 1:45 PM
we prefer correctness
P
Perksey
•
2/26/22, 1:46 PM
as it stands
, you
’ll probably have an interesting time using TerraFX
.Interop
.Vulkan with multiple devices
, possibly across multiple GPUs
P
Perksey
•
2/26/22, 1:46 PM
as how do you tell the loader to swap out the dispatch tables when
P
Perksey
•
2/26/22, 1:46 PM
(Genuine question because if the Vulkan loader has some magic we don
’t know about perhaps we should look into it
)
T
TechPizza
OP
•
2/26/22, 1:47 PM
i could try right now i guess
T
TechPizza
OP
•
2/26/22, 1:50 PM
nevermind my intel igpu doesn
't support vulkan
T
TechPizza
OP
•
2/26/22, 1:51 PM
anyways
, i do not see how the bindings depend on the dispatch tables
T
TechPizza
OP
•
2/26/22, 1:52 PM
bindings that depend on the vkinstance are loaded upon device creation
T
TechPizza
OP
•
2/26/22, 1:52 PM
everything else is static
T
TechPizza
nevermind my intel igpu doesn't support vulkan
R
Redhacker2
•
2/26/22, 1:57 PM
almost no intel iGPUs support vulkan
R
Redhacker2
•
2/26/22, 1:58 PM
they can
R
Redhacker2
•
2/26/22, 1:58 PM
and do on linux third gen and up actually
R
Redhacker2
•
2/26/22, 1:58 PM
intel just does not support it in windows for some damn reason
T
TechPizza
OP
•
2/26/22, 1:58 PM
well
, it claims to support dx12 but crashes when you try to create a device on it
:
)
T
TechPizza
OP
•
2/26/22, 1:58 PM
and reading from structured buffers returns garbage in dx11
T
TechPizza
OP
•
2/26/22, 1:59 PM
opengl works fine though
F
Furball
•
2/26/22, 2:00 PM
my laptop with an igpu claims to support vulkan 1
.1
F
Furball
•
2/26/22, 2:00 PM
key word being claims
F
Furball
•
2/26/22, 2:01 PM
intel hd graphics 4600
F
Furball
intel hd graphics 4600
T
TechPizza
OP
•
2/26/22, 2:02 PM
oh hey
, same here
Next page
VkGraphicsDevice
VkGraphicsDevice
TerraFCInterop.Vulkan.VulkanvkCmdDrawIndexed()
TerraFCInterop.Vulkan.VulkanvkCmdDrawIndexed()