You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing is under slang, another under Slang, and SlangResult is not under any namespace. Is there an intuition I could build for which namespace something would be under? Any goals to unify these all to a single namespace?
#include<print>
#include<slang.h>
#include<slang-com-ptr.h>intmain() {
std::println("Initializing global session...");
Slang::ComPtr<slang::IGlobalSession> global_session;
SlangResult result =
slang::createGlobalSession(global_session.writeRef());
if (result != SLANG_OK) {
std::println("Error creating global session.");
return1;
}
std::println("Initializing local session...");
slang::SessionDesc session_desc{};
Slang::ComPtr<slang::ISession> session;
result = global_session->createSession(session_desc, session.writeRef());
if (result != SLANG_OK) {
std::println("Error creating local session.");
return1;
}
return0;
}
The text was updated successfully, but these errors were encountered:
TACIXAT
changed the title
Multiple namespaces (and lack thereof)
Multiple namespaces
Dec 29, 2024
Follow up. I am looking at the ProgramLayout struct (or whatever that name is aliased from). I went to look at the implementation and I see that the function that toJson calls is in slang-deprecated.h. Does this mean that the toJson function is also deprecated? I see a few other of the member functions call into other deprecated functions as well. Are these all OK to use?
One thing is under
slang
, another underSlang
, andSlangResult
is not under any namespace. Is there an intuition I could build for which namespace something would be under? Any goals to unify these all to a single namespace?The text was updated successfully, but these errors were encountered: